Skip to content

An example project that demonstrates cross-region replication for Cache using Spring Cloud, Kafka, and Memcached.

License

Notifications You must be signed in to change notification settings

kpiljoong/spring-cloud-cross-region-replication-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cross region repolication for Cache example

Abstraction

This demo presents how to replicate cache date between different regions. This demo made to understand Netfilx's EVCache concept which could replicate their numerous data for low latency and highly available service. And, it also demonstrates how it's easy to implement this concept with Spring Boot and Spring Cloud. Developers can leverage Spring Cloud Stream to use Kafka in this demo. You may can find its information in followed links:

Demo architecture diagram

Diagram

Components

Producer

Producer exists for get POST requests from the world and put the recieved data to local memcached. And then, it also stores data to Kafka message queue.

Relay

Relay stands for send data to another region when there's new message in the kafka queue. When there's messgage event comes, then it pull out the data from kafka queue, then post it to a proxy in another region.

Proxy

Proxy gets data from Relay, and then put the data to local memcached.

Future works

We'd like to put databases, and put more resiliency and scalablity with ELBs, and other parts of Spring Clouds.

Thanks!

About

An example project that demonstrates cross-region replication for Cache using Spring Cloud, Kafka, and Memcached.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages