Welcome!

Linux Containers Authors: Pat Romanski, Carmen Gonzalez, Elizabeth White, Yeshim Deniz, Zakia Bouachraoui

Related Topics: @DevOpsSummit, Linux Containers, Containers Expo Blog

@DevOpsSummit: Blog Feed Post

The Power of the Proxy: Request Routing Memcached By @LMacVittie | @DevOpsSummit #DevOps

There are three things today that an application needs to survive in today’s demanding world: scale, security, and performance

There are three things today that an application needs to survive in today’s demanding world: scale, security, and performance.

It is for both reasons of scale and performance that memcached has become such a popular solution in modern application architectures. It aids in scalability by offloading database requests, which naturally increases the capacity of the database to answer queries not answerable by memcached. It improves performance, of course, by providing very fast responses to queries that in turn, are able to be returned to the user with greater alacrity.

From memcached’s site: “memcached is a free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

Redis-Labs-database-challenges

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.”

It’s in-memory, which makes it fast. Disk I/O is one of the most latency-incurring actions on any given system, so eliminating the need to go to disk to seek out data – which is pretty much a requirement in a database system – is critical to improving performance. And it’s based on key-value pairs, the basis for NoSQL databases which have arisen in response to the need to speed up access to traditional relational databases (like MySQL, Microsoft SQL, and Oracle) that are far more complex under the covers.

Basically, it’s an excellent addition to app architectures seeking a performance (and capacity) boost. Given that 60% of developers in an informal survey at AWS re:Invent in 2014 said performance was their biggest database challenge, it’s easy to understand why systems like redis (another NoSQL option for which 27% of developers in the same survey said they chose for “speed” or “performance”) and memcached are popular today.

That said, memcached servers suffer from a few shortcomings. They’re a single point of failure. They don’t scale so great, and they suffer from network interface saturation. These are problematic because if the system fails, requests fall-back to the database. And if the database scaled and performed well enough to satisfy consumers (and developers) then memcached wouldn’t be deployed in the first place, would it? It’s likely to cause outages – both the real kind (database has crashed) and the perceived outages that happen thanks to timeouts caused by overwhelmed servers.  Similarly, network interface saturation is going to cause all sorts of performance issues that arise from any other kind of congestion – time outs and increased latency – that, once onset begins, will continue to compound until the app is pretty much unusable.

In other words, the availability and performance of memcached are as critical as the availability and performance of the app it was put in place to assist.

Which is where We (the corporate F5 ‘we’) come in.

BIG-IP can, of course, load balance the heck out of web traffic in general, but did you know it can distribute load across an array of memcached servers?

Yup, it sure can. It can also provide the redundancy (failover) necessary to avoid the single point of failure problem, and has greater network interface capacity (and can aggregate multiple interfaces) meaning it can address the problem of interface saturation.

But back to the scaling. See, BIG-IP has the visibility (because it’s a full proxy) necessary to extract memcached key values from its binary protocol and then consistently (persistently) distribute requests to the appropriate Memcached server. This is basically a very simple sharding pattern, in the network, using memcached servers chosen based on the use of CARP (Cache Array Routing Protocol) to hash the memcached key and select the best pool member for delivery. Once the memcached server has been elected for a particular key, the consistency inherent in CARP ensures that subsequent requests for that key-value pair will be directed to the same memcached server.

For those of you who want to give it a try, check out this iApp template for deploying memcached request routing on BIG-IP.

Read the original blog entry...

More Stories By Lori MacVittie

Lori MacVittie is responsible for education and evangelism of application services available across F5’s entire product suite. Her role includes authorship of technical materials and participation in a number of community-based forums and industry standards organizations, among other efforts. MacVittie has extensive programming experience as an application architect, as well as network and systems development and administration expertise. Prior to joining F5, MacVittie was an award-winning Senior Technology Editor at Network Computing Magazine, where she conducted product research and evaluation focused on integration with application and network architectures, and authored articles on a variety of topics aimed at IT professionals. Her most recent area of focus included SOA-related products and architectures. She holds a B.S. in Information and Computing Science from the University of Wisconsin at Green Bay, and an M.S. in Computer Science from Nova Southeastern University.

IoT & Smart Cities Stories
The graph represents a network of 1,329 Twitter users whose recent tweets contained "#DevOps", or who were replied to or mentioned in those tweets, taken from a data set limited to a maximum of 18,000 tweets. The network was obtained from Twitter on Thursday, 10 January 2019 at 23:50 UTC. The tweets in the network were tweeted over the 7-hour, 6-minute period from Thursday, 10 January 2019 at 16:29 UTC to Thursday, 10 January 2019 at 23:36 UTC. Additional tweets that were mentioned in this...
Over the course of two days, in addition to insightful conversations and presentations delving into the industry's current pressing challenges, there was considerable buzz about digital transformation and how it is enabling global enterprises to accelerate business growth. Blockchain has been a term that people hear but don't quite understand. The most common myths about blockchain include the assumption that it is private, or that there is only one blockchain, and the idea that blockchain is...
Atmosera delivers modern cloud services that maximize the advantages of cloud-based infrastructures. Offering private, hybrid, and public cloud solutions, Atmosera works closely with customers to engineer, deploy, and operate cloud architectures with advanced services that deliver strategic business outcomes. Atmosera's expertise simplifies the process of cloud transformation and our 20+ years of experience managing complex IT environments provides our customers with the confidence and trust tha...
At CloudEXPO Silicon Valley, June 24-26, 2019, Digital Transformation (DX) is a major focus with expanded DevOpsSUMMIT and FinTechEXPO programs within the DXWorldEXPO agenda. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive over the long term. A total of 88% of Fortune 500 companies from a generation ago are now out of business. Only 12% still survive. Similar percentages are found throug...
Never mind that we might not know what the future holds for cryptocurrencies and how much values will fluctuate or even how the process of mining a coin could cost as much as the value of the coin itself - cryptocurrency mining is a hot industry and shows no signs of slowing down. However, energy consumption to mine cryptocurrency is one of the biggest issues facing this industry. Burning huge amounts of electricity isn't incidental to cryptocurrency, it's basically embedded in the core of "mini...
In his general session at 19th Cloud Expo, Manish Dixit, VP of Product and Engineering at Dice, discussed how Dice leverages data insights and tools to help both tech professionals and recruiters better understand how skills relate to each other and which skills are in high demand using interactive visualizations and salary indicator tools to maximize earning potential. Manish Dixit is VP of Product and Engineering at Dice. As the leader of the Product, Engineering and Data Sciences team at D...
The term "digital transformation" (DX) is being used by everyone for just about any company initiative that involves technology, the web, ecommerce, software, or even customer experience. While the term has certainly turned into a buzzword with a lot of hype, the transition to a more connected, digital world is real and comes with real challenges. In his opening keynote, Four Essentials To Become DX Hero Status Now, Jonathan Hoppe, Co-Founder and CTO of Total Uptime Technologies, shared that ...
At CloudEXPO Silicon Valley, June 24-26, 2019, Digital Transformation (DX) is a major focus with expanded DevOpsSUMMIT and FinTechEXPO programs within the DXWorldEXPO agenda. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive over the long term. A total of 88% of Fortune 500 companies from a generation ago are now out of business. Only 12% still survive. Similar percentages are found throug...
Every organization is facing their own Digital Transformation as they attempt to stay ahead of the competition, or worse, just keep up. Each new opportunity, whether embracing machine learning, IoT, or a cloud migration, seems to bring new development, deployment, and management models. The results are more diverse and federated computing models than any time in our history.
At CloudEXPO Silicon Valley, June 24-26, 2019, Digital Transformation (DX) is a major focus with expanded DevOpsSUMMIT and FinTechEXPO programs within the DXWorldEXPO agenda. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive over the long term. A total of 88% of Fortune 500 companies from a generation ago are now out of business. Only 12% still survive. Similar percentages are found throug...