Skip to main content

A Distributed Cache in Less Than 100 Lines of Code With Akka

An in-memory cache is a crucial component in a modern software architecture. It can improve the throughput of a system. As a result, the user experience is increased while the operating cost is decreased due to efficient resource usages. The well-known open-source in-memory caches are Redis and Memcache. The latter does not support replication, and it is not a distributed caching system either. However, if you are already using Akka as your backend service, why bother having another system for caching when Akka could be the right tool for you. Akka Cluster uses the Gossip protocol for communicating across members in a cluster. Akka Cluster is an extension of the Akka toolkit that extends the Akka remote functionality. You have to provide a set of seed nodes that act as contact points for new nodes. There is no election process for a leader node since it can be determined by any node when there is a gossip convergence.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

tutorial,performance,scala,akka,cache,clusters,distributed system

Comments

Popular posts from this blog

HTML5 and CSS3 Zebra Striping - Look Ma No JavaScript

It was 5 maybe 6 years ago when I first started learning jQuery. One of the first things I did was order the jQuery In Action book. If you have read that book you should remember one of the first examples given, zebra striping a table. To me this example sold me on the idea of jQuery even if I did not actually understand how jQuery worked at the time. With one line of code I could now alternate background colors in a table.
✔ Read More...
I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. W…

Example on View to Controller (HttpPost) & warn on duplicate entry & delete duplicates in MVC

This is a quick response post to my one of the blog reader 'V Patel' who asked this question yesterday. Here is the question: His main question was: i) passing data from view to controller and ii) on button click display the thing from textbox to label. To answer these quick questions I build a sample web app where user will register his mobile number to get SMS alerts. Even...
Read More...
I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respe…

Reference from UITableViewCell to parent UITableView?

Store a weak reference to the tableView in the cell, which you'd set in -tableView:cellForRowAtIndexPath: of your table's dataSource. This is better than relying on self.superview to always be exactly the tableView is fragile. Who knows how Apple might re-organize the view hierarchy of UITableView in the future.
I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too. 

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.
This article is related to

iPad,iPhone,iPhone Resources,iPhone Artic…