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 8695133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:57:22+00:00 2026-06-13T00:57:22+00:00

I am looking to get some ideas on how I can solve my failover

  • 0

I am looking to get some ideas on how I can solve my failover problem in my Java service.

At a high level, my service receives 3 separate object streams of data from another service, performs some amalgamating logic and then writes to a datastore.

Each object in the stream will have a unique key. Data from the 3 streams can arrive simultaneously, there is no guaranteed ordering.

After the data arrives, it will be stored in some java.util.concurrent collection, such as a BlockingQueue or a ConcurrentHashMap.

The problem is that this service must support failover, and I am not sure how to resolve this if failover were to take place when data is stored in an in-memory object.

One simple idea I have is the following:

  1. Write to a file/elsewhere when receiving an object, and prior to adding to queue
  2. When an object is finally procesed and stored in the datastore
  3. When failover occurs, ensure that same file is copied across and we know which objects we need to receive data for

Performance is a big factor in my service, and as IO is expensive this seems like a crude approach and is quite simplistic.

Therefore, I am wondering if there are any libraries etc out there that can solve this problem easily?

  • 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-13T00:57:24+00:00Added an answer on June 13, 2026 at 12:57 am

    I would use Java Chronicle partly because I wrote it but mostly because …

    • it can write and read millions of entries per second to disk in a text or a binary format.
    • can be shared between processes e.g. active-active clustering with sub-microsecond latency.
    • doesn’t require a system call or flush to push out the data.
    • the producer is not slowed by the consumer which can be GBs ahead (more than the total memory of the machine)
    • it can be used in a low heap GC-less and lockless manner.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking for some ideas/pattern to solve a design problem for a system I will
I'm looking for good example of school websites that I can get some inspiration
I'm looking for some architecture ideas on a problem at work that I may
still a bit of a n00b on SharpSVN, I'm looking to get some simple
I'm looking to make a website that will probably get some heavy, repetitive traffic.
I'm using sorl-thumbnail to get some images to crop. I have a model looking
I'm looking to parse some CXML in PHP...basically all I'm looking to get the
I'm looking for best practices to solve this hard problem: My app has a
I'm looking to solve a problem I have with implementing role-based authorization of a
I was looking at some native C code, and it referenced gdk_get_default_root_window . I

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.