Study

[Redis Client] Jedis vs Lettuce (Lettuce를 쓰자)

Developer RyanKim 2022. 6. 12. 23:08

Jedis vs Lettuce (Lettuce를 쓰자)

이미 많은 글에서 차이를 다루고 있고, 결론은 최신 프로젝트에서는 Lettuce 를 쓰자 입니다.
기록용으로 왜 Lettuce 써야하는지 핵심만 적어봅니다.


Jedis

Redis용 Java 클라이언트

https://github.com/redis/jedis

 

GitHub - redis/jedis: Redis Java client designed for performance and ease of use.

Redis Java client designed for performance and ease of use. - GitHub - redis/jedis: Redis Java client designed for performance and ease of use.

github.com

Lettuce

thread-safe Redis client for synchronous, asynchronous and reactive Redis 클라이언트

 

https://github.com/lettuce-io/lettuce-core

 

GitHub - lettuce-io/lettuce-core: Advanced Java Redis client for thread-safe sync, async, and reactive usage. Supports Cluster,

Advanced Java Redis client for thread-safe sync, async, and reactive usage. Supports Cluster, Sentinel, Pipelining, and codecs. - GitHub - lettuce-io/lettuce-core: Advanced Java Redis client for th...

github.com

 


Lettuce는 Java8의 CompletionStage 인터페이스를 통한 asynchronous 지원 및 Reactive Streams 지원으로 고성능이다. 고로 Lettuce 를 쓰자!

Jedis Lettuce 성능비교 참고 ( Lettuce 압도적.. )
- https://jojoldu.tistory.com/418