simple-spring-memcached for non blocking cache warming

15 views
Skip to first unread message

Raj

unread,
Jun 27, 2017, 5:22:16 AM6/27/17
to simple-spring-memecached
Hello,

I am exploring options to pre-warm a cache, I use simple spring memcached in my application. The cache I am referring has approximately half a million keys,I am looking for non blocking approach to parallelize the cache warming process.

I was curious to know if this is supported out of the box ? 

Thanks for your time
Raj

Jakub Białek

unread,
Jun 27, 2017, 2:46:34 PM6/27/17
to simple-spring-memecached
Hi,

How does it look currently? How do you warm up the cache? What is a source of data that are inserted into the cache?

-- Ragnor

--
You received this message because you are subscribed to the Google Groups "simple-spring-memecached" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-spring-memecached+unsub...@googlegroups.com.
To post to this group, send email to simple-spring-memecached@googlegroups.com.
Visit this group at https://groups.google.com/group/simple-spring-memecached.
For more options, visit https://groups.google.com/d/optout.

Raj

unread,
Jun 27, 2017, 11:42:09 PM6/27/17
to simple-spring-memecached
HI,

Currently we are using MemcacheClient provided by spymemcached to set or add cache entries asynchronously. We warm up the cache by triggering a job that in-turn updates the entire cache (flush-add cycle).Translations may be the final source of data.

Thanks,
Raj


On Wednesday, June 28, 2017 at 12:16:34 AM UTC+5:30, ragnor84 wrote:
Hi,

How does it look currently? How do you warm up the cache? What is a source of data that are inserted into the cache?

-- Ragnor
On 27 June 2017 at 11:22, Raj <rajmup...@gmail.com> wrote:
Hello,

I am exploring options to pre-warm a cache, I use simple spring memcached in my application. The cache I am referring has approximately half a million keys,I am looking for non blocking approach to parallelize the cache warming process.

I was curious to know if this is supported out of the box ? 

Thanks for your time
Raj

--
You received this message because you are subscribed to the Google Groups "simple-spring-memecached" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-spring-memecached+unsub...@googlegroups.com.
To post to this group, send email to simple-sprin...@googlegroups.com.

Jakub Białek

unread,
Jun 28, 2017, 5:55:22 AM6/28/17
to simple-spring-memecached
Hi,

There isn't any extra support for it in SSM but your approach is good. Maybe to speed it up you will perform it in parallel using multiple threads (parallel stream in Java 8)? 

-- Ragnor

On 28 June 2017 at 05:42, Raj <rajmup...@gmail.com> wrote:
HI,

Currently we are using MemcacheClient provided by spymemcached to set or add cache entries asynchronously. We warm up the cache by triggering a job that in-turn updates the entire cache (flush-add cycle).Translations may be the final source of data.

Thanks,
Raj

On Wednesday, June 28, 2017 at 12:16:34 AM UTC+5:30, ragnor84 wrote:
Hi,

How does it look currently? How do you warm up the cache? What is a source of data that are inserted into the cache?

-- Ragnor
On 27 June 2017 at 11:22, Raj <rajmup...@gmail.com> wrote:
Hello,

I am exploring options to pre-warm a cache, I use simple spring memcached in my application. The cache I am referring has approximately half a million keys,I am looking for non blocking approach to parallelize the cache warming process.

I was curious to know if this is supported out of the box ? 

Thanks for your time
Raj

--
You received this message because you are subscribed to the Google Groups "simple-spring-memecached" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-spring-memecached+unsubscr...@googlegroups.com.
To post to this group, send email to simple-sprin...@googlegroups.com.
Visit this group at https://groups.google.com/group/simple-spring-memecached.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "simple-spring-memecached" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-spring-memecached+unsub...@googlegroups.com.
To post to this group, send email to simple-spring-memecached@googlegroups.com.

Raj

unread,
Jun 29, 2017, 8:34:33 AM6/29/17
to simple-spring-memecached
Thanks
Reply all
Reply to author
Forward
0 new messages