{"id":25310,"date":"2017-05-06T19:00:02","date_gmt":"2017-05-06T19:00:02","guid":{"rendered":"https:\/\/www.whizlabs.com\/?p=25310"},"modified":"2024-05-22T10:28:21","modified_gmt":"2024-05-22T04:58:21","slug":"aws-elasticcache","status":"publish","type":"post","link":"https:\/\/www.whizlabs.com\/blog\/aws-elasticcache\/","title":{"rendered":"AWS ElasticCache &#8211; Fully managed, in-memory data store and cache in the cloud"},"content":{"rendered":"<p>Are you preparing for <a title=\"AWS Certified Solutions Architect Professional\" href=\"https:\/\/www.whizlabs.com\/aws-solutions-architect-professional\/\">AWS Certified Solutions Architect Professional certification exam<\/a>? In this space, we are writing series of articles on topics which are covered in the Solutions Architect Professional certification exam such as; <em><a href=\"https:\/\/www.whizlabs.com\/aws-solutions-architect-associate\/\" target=\"_blank\" rel=\"noopener\">AWS Cloud Architect<\/a>, <span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;aws solution architect associate&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:14337,&quot;3&quot;:{&quot;1&quot;:1},&quot;14&quot;:{&quot;1&quot;:3,&quot;3&quot;:1},&quot;15&quot;:&quot;Calibri&quot;,&quot;16&quot;:11}\"><a href=\"https:\/\/www.whizlabs.com\/blog\/aws-certified-solutions-architect-associate-guide\/\" target=\"_blank\" rel=\"noopener\">AWS Solution Architect Associate<\/a>, <a href=\"https:\/\/www.whizlabs.com\/aws-certified-cloud-practitioner\/\">AWS Cloud Practitioner exam<\/a> etc<\/span><\/em>.. In this article, we are explaining one of the important service available with Amazon web services which is \u00a0AWS Elastic Cache. You would expect lot of questions from this topic for <a href=\"https:\/\/www.whizlabs.com\/aws-solutions-architect-associate\/\" target=\"_blank\" rel=\"noopener\">Solution Architect Certification<\/a> exam. You can subscribe to us for receiving the further updates on this topic.<\/p>\n<ul>\n<li><strong><a href=\"https:\/\/www.whizlabs.com\/aws-solutions-architect-professional\/free-test\/\">AWS Certified Solutions Architect Professional &#8211; Free Test<\/a><\/strong><\/li>\n<li><strong><a title=\"HOW TO Prepare for AWS Certified Solutions Architect Professional Certification Exam?\" href=\"https:\/\/www.whizlabs.com\/blog\/aws-certified-solutions-architect-professional\/\">How to prepare for AWS certified solutions architect professional exam?<\/a><\/strong><\/li>\n<\/ul>\n<p>This topic addresses the Scalability and Elasticity domain as highlighted in the AWS Blueprint for the exam guide<\/p>\n<ul>\n<li><strong><a href=\"https:\/\/d0.awsstatic.com\/training-and-certification\/docs-sa-pro\/AWS_certified_solutions_architect_professional_blueprint.pdf\" target=\"_blank\" rel=\"noopener\">https:\/\/d0.awsstatic.com\/training-and-certification\/docs-sa-pro\/AWS_certified_solutions_architect_professional_blueprint.pdf<\/a><\/strong><\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/blueprint-2.png\"><img decoding=\"async\" class=\"aligncenter wp-image-25632 size-full\" title=\"AWS Certified Solutions Architect Professional BluePrint\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/blueprint-2.png\" alt=\"AWS Certified Solutions Architect Professional BluePrint\" width=\"680\" height=\"190\" \/><\/a><\/p>\n<h2><b>What is Elastic Cache?<\/b><\/h2>\n<p>Elastic cache is a web service that allows one to retrieve data faster from fast, managed and in-built caches. Instead of relying on slower disk based databases. Since the read write operation on a disk is higher than that of an in-built cache, having a cache mechanism in place can severely improve the performance of an application.<\/p>\n<p>Amazon does all the background work of managing in-built caches. So the infrastructure, the upgrades to the cache software is all done by AWS. You don\u2019t need to worry about managing all of this and can focus on just your application.<\/p>\n<p>Caches are normally used by real time applications such as gaming, social networking and media sharing.<\/p>\n<ul>\n<li>AWS gives you a choice of 2 Cache Engine (Redis or memcached) &#8211; Some of the key differences between these solutions are given below<\/li>\n<li>Memcached is multi-threaded whilst Redis is single threaded. So in Redis, it\u2019s just one application that can work with one piece of data at a time.<\/li>\n<li>There is no persistence when it comes to Memcached. So if you bring a node down, all of the data gets flushed.<\/li>\n<li>Should as a flat string cache \u2013 So if you want to store plain string HTML files or serialize JSON data, this is a great fit.<\/li>\n<li>Memcached is easy to scale horizontally, so you can nodes to supplement the load on the database on the fly.<\/li>\n<li>Memcached is easier to maintain.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/Cache.png\"><img decoding=\"async\" class=\"aligncenter wp-image-25312 size-full\" title=\"ElastiCache Cluster\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/Cache.png\" alt=\"ElastiCache Cluster\" width=\"720\" height=\"477\" \/><\/a><\/p>\n<p>Some of the advantages of Elastic Cache are given as shown below<\/p>\n<ul>\n<li>Easy to deploy \u2013 Using the AWS console, the cache service is just so easy to deploy. With just a few steps, you can get your cache service up and running in no time.<\/li>\n<li>Easy Scaling of Nodes \u2013 its super simple to add new nodes to an existing cluster in AWS. AWS provides you with easy options via the console to add nodes on the fly to an existing cluster.<\/li>\n<li>Fault Tolerant \u2013 Through AWS Cloudwatch, the entire infrastructure for Elastic cache is monitored by AWS. AWS can automatically detect node failures and replace nodes on the fly<\/li>\n<li>All clusters in Elastic cache are spread across multiple availability zones. This helps in ensuring that the cache is always available to end users or the application.<\/li>\n<li>Replication groups for<b> <\/b>redis<b> &#8211; <\/b>In Redis, you have the option of creating clusters. By having clusters, you can ensure better fault tolerance for your application. By adding a read replica to your existing cluster, and adding it to another availability zone. By doing this, you can ensure availability if your primary server goes down for any reason.<\/li>\n<li>Backups- A backup is a point-in-time copy of a Redis cluster. Backups can be used to restore an existing cluster or to seed a new cluster. Backups consist of all the data in a cluster plus some metadata. Backups are not supported by the Memcached engine<\/li>\n<li>Endpoints &#8211; By having end points, it becomes very easy for any type of application to connect and work with the cache. Then end point consists of a domain name and a port number for the connection. Applications such as .Net, PHP or java can then use these end points in their applications to work with caches.<\/li>\n<\/ul>\n<h2><b>Creating an Elastic Cache Cluster<\/b><\/h2>\n<p>Let\u2019s now look at the steps to creating an Elastic Cache<\/p>\n<p><strong>Step 1:<\/strong>Log into the AWS console and go to the database section and select ElastiCache<\/p>\n<p><a href=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/SelectElasticCache.png\"><img decoding=\"async\" class=\"aligncenter wp-image-25320 size-full\" title=\"Goto Database and Select Elastic Cache\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/SelectElasticCache.png\" alt=\"Goto Database and Select Elastic Cache\" width=\"170\" height=\"156\" \/><\/a><\/p>\n<p><strong>Step 2:<\/strong>\u00a0Choosing the cache type \u2013 In the next screen you will be prompted to choose the elastic cache type. As noted in the features of elastic cache, AWS provides you will 2 types of caches. Let\u2019s choose Memcache for the purpose of this exercise<\/p>\n<p><a href=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/CreateCluster.png\"><img decoding=\"async\" class=\"aligncenter wp-image-25314 size-full\" title=\"Create Memcached Cluster\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/CreateCluster.png\" alt=\"Create Memcached Cluster\" width=\"792\" height=\"244\" \/><\/a><\/p>\n<p><strong>Step 3:<\/strong>\u00a0Next you need to choose the Node type and number of nodes in your cache. This is important and depends on the number of requests that will be cached by your application. Here you also need to specify a name for your cache.<\/p>\n<p>You can leave the default values for the Engine version compatibility and Parameter Group.<\/p>\n<p>You need to make a note of the Port no, because this will be required when connecting to the cache from an application.<\/p>\n<p><a href=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/MemcachedSettings.png\"><img decoding=\"async\" class=\"aligncenter wp-image-25316 size-full\" title=\"Memcached Settings\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/MemcachedSettings.png\" alt=\"Memcached Settings\" width=\"829\" height=\"359\" \/><\/a><\/p>\n<p>You can then click on Create located at the bottom of the screen.<\/p>\n<p><a href=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/CacheDetails.png\"><img decoding=\"async\" class=\"aligncenter wp-image-25313 size-full\" title=\"Click on Create\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/CacheDetails.png\" alt=\"Click on Create\" width=\"1039\" height=\"383\" \/><\/a><\/p>\n<p><strong>Step 4:<\/strong> Once the cache is created, you will be able to see the details of the cache.<\/p>\n<p><b><span style=\"text-decoration: underline;\">Creating an Elastic Cache Cluster- Redis<\/span><\/b><\/p>\n<p>Let\u2019s now look at the steps to creating an Elastic Cache &#8211; Redis<\/p>\n<p><strong>Step 1:\u00a0<\/strong>Log into the AWS console and go to the database section and select ElastiCache<\/p>\n<p><a href=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/SelectElasticCache-1.png\"><img decoding=\"async\" class=\"aligncenter wp-image-25320 size-full\" title=\"Goto Database and Select Elastic Cache\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/SelectElasticCache-1.png\" alt=\"Goto Database and Select Elastic Cache\" width=\"170\" height=\"156\" \/><\/a><\/p>\n<p><strong>Step 2:<\/strong> Choosing the cache type \u2013 In the next screen you will be prompted to choose the elastic cache type. As noted in the features of elastic cache, AWS provides you will 2 types of caches. Let\u2019s choose Redis for the purpose of this exercise<\/p>\n<p><a href=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/CreateClusterRedis.png\"><img decoding=\"async\" class=\"aligncenter wp-image-25315 size-full\" title=\"Create Redis Cluster\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/CreateClusterRedis.png\" alt=\"Create Redis Cluster\" width=\"820\" height=\"285\" \/><\/a><\/p>\n<p><strong>Step 3:<\/strong> Next you need to specify the parameters for the cache. The important part is the Node type and the number of replica\u2019s. The cache node is important to ensuring that the right number of cache entries can be stored in the cache. And next is the number of replica\u2019s which can used for scaling purposes.<\/p>\n<p><a href=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/RedisSettings.png\"><img decoding=\"async\" class=\"aligncenter wp-image-25318 size-full\" title=\"Redis Settings\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/RedisSettings.png\" alt=\"Redis Settings\" width=\"830\" height=\"402\" \/><\/a><\/p>\n<p>Once all the parameters have been entered, you can click on Create at the bottom of the screen.<\/p>\n<p>Once done you will then be able to see your Redis cache<\/p>\n<p><a href=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/RedisCache.png\"><img decoding=\"async\" class=\"aligncenter wp-image-25317 size-full\" title=\"See your Redis Cache\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/05\/RedisCache.png\" alt=\"See your Redis Cache\" width=\"1048\" height=\"403\" \/><\/a><\/p>\n<h2><b>Final Points to Remember about Elastic Cache<\/b><\/h2>\n<ul>\n<li>Memcached is multi-threaded whilst Redis is single threaded. So in Redis, it\u2019s just one application that can work with one piece of data at a time.<\/li>\n<li>There is no persistence when it comes to Memcached. So if you bring a node down, all of the data gets flushed.<\/li>\n<li>Should as a flat string cache \u2013 So if you want to store plain string HTML files or serialize JSON data, this is a great fit.<\/li>\n<li>Memcached is easy to scale horizontally, so you can nodes to supplement the load on the database on the fly.<\/li>\n<li>Memcached is easier to maintain<\/li>\n<\/ul>\n<h2>Summary<\/h2>\n<ul>\n<li><strong>Don\u2019t MISS IT :<a href=\"\/\/www.whizlabs.com\/aws-solutions-architect-professional\/practice-tests\/\"> AWS Certified Solutions Architect Professional &#8211; Practice Tests(50% Discount)<\/a><\/strong><\/li>\n<\/ul>\n<p>In this article we have explained about AWS Elastic Cache. This is one of the most important service\u00a0offered by Amazon Web Services (AWS) that will help the developerz . You would expect lot of questions from this topic in your certification exam.<\/p>\n<p><strong>If you are preparing for the AWS certifications exam and looking for any help, please send us a mail or call to our customer support team.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you preparing for AWS Certified Solutions Architect Professional certification exam? In this space, we are writing series of articles on topics which are covered in the Solutions Architect Professional certification exam such as; AWS Cloud Architect, AWS Solution Architect Associate, AWS Cloud Practitioner exam etc.. In this article, we are explaining one of the important service available with Amazon web services which is \u00a0AWS Elastic Cache. You would expect lot of questions from this topic for Solution Architect Certification exam. You can subscribe to us for receiving the further updates on this topic. AWS Certified Solutions Architect Professional &#8211; [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":96414,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4],"tags":[201,236,3933,3923,300,3919,3931,1470],"class_list":["post-25310","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws-certifications","tag-aws-certifications","tag-aws-certified-solutions-architect","tag-aws-cloud-architect","tag-aws-cloud-practitioner-exam","tag-aws-solution-architect","tag-aws-solution-architect-associate","tag-solution-architect-certification","tag-solutions-architect-professional"],"uagb_featured_image_src":{"full":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2017\/05\/aws-elastic-cache.jpg",725,282,false],"thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2017\/05\/aws-elastic-cache-150x150.jpg",150,150,true],"medium":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2017\/05\/aws-elastic-cache-300x117.jpg",300,117,true],"medium_large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2017\/05\/aws-elastic-cache.jpg",725,282,false],"large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2017\/05\/aws-elastic-cache.jpg",725,282,false],"1536x1536":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2017\/05\/aws-elastic-cache.jpg",725,282,false],"2048x2048":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2017\/05\/aws-elastic-cache.jpg",725,282,false],"profile_24":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2017\/05\/aws-elastic-cache.jpg",24,9,false],"profile_48":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2017\/05\/aws-elastic-cache.jpg",48,19,false],"profile_96":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2017\/05\/aws-elastic-cache.jpg",96,37,false],"profile_150":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2017\/05\/aws-elastic-cache.jpg",150,58,false],"profile_300":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2017\/05\/aws-elastic-cache.jpg",300,117,false],"tptn_thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2017\/05\/aws-elastic-cache-250x250.jpg",250,250,true],"web-stories-poster-portrait":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2017\/05\/aws-elastic-cache-640x282.jpg",640,282,true],"web-stories-publisher-logo":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2017\/05\/aws-elastic-cache-96x96.jpg",96,96,true],"web-stories-thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2017\/05\/aws-elastic-cache-150x58.jpg",150,58,true]},"uagb_author_info":{"display_name":"Pavan Gumaste","author_link":"https:\/\/www.whizlabs.com\/blog\/author\/pavan\/"},"uagb_comment_info":1,"uagb_excerpt":"Are you preparing for AWS Certified Solutions Architect Professional certification exam? In this space, we are writing series of articles on topics which are covered in the Solutions Architect Professional certification exam such as; AWS Cloud Architect, AWS Solution Architect Associate, AWS Cloud Practitioner exam etc.. In this article, we are explaining one of the&hellip;","_links":{"self":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/25310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/comments?post=25310"}],"version-history":[{"count":2,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/25310\/revisions"}],"predecessor-version":[{"id":96426,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/25310\/revisions\/96426"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media\/96414"}],"wp:attachment":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media?parent=25310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/categories?post=25310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/tags?post=25310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}