Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9007619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:44:20+00:00 2026-06-16T01:44:20+00:00

Suppose I have a local cache on each sever using a LRU Cache or

  • 0

Suppose I have a local cache on each sever using a LRU Cache or something similar.
If I invalidate an object at one node then other nodes should be noticed.
I have seen this implemented with jgroups.

I would like to know if a ‘cache invalidation queue’ using jms (lets say ActiveMQ) would fit the application. Not sure about response times and so.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:44:22+00:00Added an answer on June 16, 2026 at 1:44 am

    It depends on your constraints, namely how long you can bear stale reads (i.e. the cache returning outdated data).

    If this doesn’t hurt at all, JMS is a nice and clean way to notify all members since it’s easy to make sure every member gets the “flush” message eventually.

    If you need to make sure obsolete data is flushed immediately, you can use JMS to coordinate the flush by adding transactions and request/response cycles to the game. But that means you can run into deadlocks or starving processes if you’re not careful – that’s the price you have to pay for synchronization.

    If this bothers you, the question is what other technology you could use to achieve the same result. You could use RMI or sockets but then, you’d have to reinvent the wheel (which means you will spend a lot of time to get where JMS already is today). But that would only replace one transport technology with another – it wouldn’t help with synchronization issues.

    Or you could use a cache that supports clustering. You can try Terracotta’s Enterprise Ehcache but under the hood, it will use a similar technique to keep caches in sync. The big advantage is that Ehcache has been used (= debugged) for years now, so you will only run into well-known problems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have n processes and each of them possesses a piece of local
Suppose you have two linked servers called Local and Remote respectively. Is there a
Suppose I have a static method of my class that returns an object of
Suppose we have these local variables: int a = 0; int b = 1;
Suppose I have a url like: http://example.com/get-users which returns a JSON object of all
If I have local data of an app, suppose a local highscore where I
Suppose, I have a method with a parameter of Object type. The method returns
Suppose I have a local file that I am working on that is part
Suppose I have variables local a=10 local b=1 local c=0.25 where a necessarily is
Suppose I have a normal Xaml file with two extra xmlns, one to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.