Redisson
Jedis
Our great sponsors
Redisson | Jedis | |
---|---|---|
3 | 4 | |
22,706 | 11,628 | |
1.3% | 1.0% | |
9.9 | 9.1 | |
4 days ago | 4 days ago | |
Java | Java | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Redisson
-
Kotlin Spring WebFlux, R2DBC and Redisson microservice in k8s 👋✨💫
Source code you can find in the GitHub repository. he main idea of this project is the implementation of microservice using Kotlin, Spring WebFlux, PostgresSQL, and Redis with metrics and monitoring and deploying it to k8s. For interacting with PostgresSQL we will use reactive Spring Data R2DBC and for Redis caching using Redisson.
-
Am I overlooking any potential issues that could arise from my implementation?
I came up empty handed in search of an alternative to Quartz for scheduling Crons in a clustered/distributed environment. Redisson has a scheduler, but it came with its own issues: - https://github.com/redisson/redisson/issues/4020 - https://github.com/redisson/redisson/issues/3991 - https://github.com/redisson/redisson/issues/4321
-
Implement Hibernate 2nd level Cache with Redis, Spring Boot, and Spring Data JPA
4. We use the open-source library Redisson to connect to Redis instance and use Redis as Hibernate 2nd level cache. Please see their Github repo for more information.
Jedis
-
Lessons learned from picking a Java based driver for Amazon ElastiCache for Redis - Part 1
Finding out what's causing that was not that simple as Jedis does not write a lot of log information when the log level is set to debug. From what we could tell from the Jedis source code it seems that when the Jedis client connects to the configuration endpoint it fetches all known hosts. It stores that in a local cache and figures out the primary node from the set of nodes. Once the primary node is known it will execute operations against the primary node. It does so by connecting to the Amazon-generated domain name/entry and when that entry is down / unreachable it seems it does not use the configuration endpoint to rediscover the nodes or fetch the new cluster topology. We initially thought this had to do with the DNS caching of the JVM, so we also tried to disable caching, but we did not see any effect after that change.
-
Removies
jedis is used to interact with Redis.
- Stop using noargsconstructors and setters (and builders)
-
Uma abordagem diferenciada à Sessões de Usuário em Microsserviços usando Redis
Como um bônus, deixo aqui uma classe SessionManager pra ajudar na implementação em Java usando Jedis e o gerador de token do Tomcat, que já é normalmente incluído no Spring Boot:
What are some alternatives?
Hazelcast - Hazelcast is a unified real-time data platform combining stream processing with a fast data store, allowing customers to act instantly on data-in-motion for real-time insights.
HikariCP - 光 HikariCP・A solid, high-performance, JDBC connection pool at last.
Ehcache - Ehcache 3.x line
MapDB - MapDB provides concurrent Maps, Sets and Queues backed by disk storage or off-heap-memory. It is a fast and easy to use embedded Java database engine.
Chronicle Map - Replicate your Key Value Store across your network, with consistency, persistance and performance.
EVCache - A distributed in-memory data store for the cloud
Vert.x - Vert.x is a tool-kit for building reactive applications on the JVM
H2 - H2 is an embeddable RDBMS written in Java.
Dropwizard Circuit Breaker - A circuit breaker design pattern for dropwizard
jOOQ - jOOQ is the best way to write SQL in Java