Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kpiljoong/spring-cloud-cross-region-replication-example
An example project that demonstrates cross-region replication for Cache using Spring Cloud, Kafka, and Memcached.
https://github.com/kpiljoong/spring-cloud-cross-region-replication-example
Last synced: 3 months ago
JSON representation
An example project that demonstrates cross-region replication for Cache using Spring Cloud, Kafka, and Memcached.
- Host: GitHub
- URL: https://github.com/kpiljoong/spring-cloud-cross-region-replication-example
- Owner: kpiljoong
- License: apache-2.0
- Created: 2019-04-29T05:23:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-29T13:51:36.000Z (over 5 years ago)
- Last Synced: 2024-05-27T15:17:51.788Z (6 months ago)
- Language: Java
- Homepage:
- Size: 365 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
- Announcing EVCache Distributed in Memory Database https://medium.com/netflix-techblog/announcing-evcache-distributed-in-memory-datastore-for-cloud-c26a698c27f7
- Cache Warming Agility for a Stateful service
https://medium.com/netflix-techblog/cache-warming-agility-for-a-stateful-service-2d3b1da82642- Application Data Caching Using SSDs
https://medium.com/netflix-techblog/application-data-caching-using-ssds-5bf25df851ef- Evolution of Application Data Caching from RAM to SSD
https://medium.com/netflix-techblog/evolution-of-application-data-caching-from-ram-to-ssd-a33d6fa7a690## Demo architecture diagram
![Diagram](https://github.com/kpiljoong/spring-cloud-cross-region-replication-example/wiki/images/diagram.png)
## 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!