Spring Tips: Better Data-Driven Applications with Spring Boot and Redis
Vložit
- čas přidán 7. 09. 2024
- Hi, Spring fans! Redis is the swiss-army knife of databases and it integrates into Spring-based workloads with ease. In this installment, Josh Long (@starbuxman) and special guest star Brian Sam-Bodden (@bsbodden) look at just a few of the bootiful possibilities for Redis and Spring Boot.
Thanks for sharing. Good stuff.
Pretty cool, thanks for the video~~~~
Great stuff, really enjoy your videos Josh! 🚀
Could you make the IDE use all the screen estate in next videos (no thick green/red border)? Thank you very much for the video.
Very informative, the live coding is super fast and fluent, just flying like redis.
This escalated pretty quickly. From what is Spring and Redis to somy crazy stuff
At 15:40 the code shown in line 52 has
'template.setConnectionFactory(jedisConnectionFactory());'
You don't want to do that with Spring. If one is declaring a Spring bean of type 'JedisConnectionFactory' is better to pass it as collaborator of the method.
@Bean
RedisTemplate redisTemplate(JedisConnectionFactory jConnectionFactory) {
RedisTemplate template = new RedisTemplate();
template.setConnectionFactory(jConnectionFactory)
// ...
}
Josh Long can explain you more about why the way shown in the video works but is not recommended.
Does @Cacheable work using an asynchronous non-blocking call to the Redis CacheManager? Is it possible to get a CacheManager that will allow for async' Redis operations?
Thanks
It would be awesome if we had a source code
👏🏼👏🏼
When saving the 2500 articles, is it right that we save one at a time @ 19:35 , or we should save all at once as in jpa. Does Redis have speed disparities on the two.
That was just for a demo purpose, you can bulk load that data into Redis easily
Please make a tutorial with MS-Sharepoint Webhooks and Spring :-)
Wow how do you code so fast??
How can I contribute to create videos in your channel? I have 12 years experience working with Spring and made good projects that one might be interested to learn.
Could you create your own channel and let us know? I'll subscribe to it.
Thanks Josh Long (@starbuxman) and special guest star Brian Sam-Bodden (@bsbodden) for this great video. I typed all the codes in the last example and upon running the app, I kept getting the ERR Protocol error: unauthenticated multibulk length. I reduced the number of Articles and Authors, but the error persisted.
Given that this is a limitation in Redis itself which doesn't allow a multi bulk arg larger than 1024*1024 in length, how did you guys work around it so as to avoid the error or how do you handle this error as per the example in video?
大佬