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

  • SEARCH
  • Home
  • 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 8318111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:50:46+00:00 2026-06-08T21:50:46+00:00

I am also thinking of integrating the disruptor pattern in our application. I am

  • 0

I am also thinking of integrating the disruptor pattern in our application. I am a bit unsure about a few things before I start using the disruptor

  1. I have 3 producers, mainly a FIX thread which de-serialises the requests. Another thread which continously modifies order price as the market moves. Also we have one more thread which is responsible for de-serialising the requests sent from a GUI application. All three threads currently write to a Blocking Queue (hence we see a lot of contention on the queue)
  2. The disruptor talks about a Single writer principle and from what I have read that approach scales the best. Is there any way we could make the above three threads obey the single writer principle?
  3. Also in a typical request/response application, specially in our case we have contention on an in memory cache, as we need to lock the cache when we update the cache with the response, whilst a request might be happening for the same order. How do we handle this through the disruptor, i.e. how do I tie up a response to a particular request? Can I eliminate the lock on the cache if yes how?

Any suggestions/pointers would be highly appreciated. We are currently using Java 1.6

  • 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-08T21:50:48+00:00Added an answer on June 8, 2026 at 9:50 pm

    I’m new to distruptor and am trying to understand as much usecases as possible. I have tried to answer your questions.

    1. Yes, Disruptor can be used to sequence calls from multiple
      producers. I understand that all 3 threads try to update the state
      of a shared object. And a single consumer which takes necessary action on the shared object. Internally you can have the single consumer delegate calls to the appropriate single threaded handler based on responsibility. The

    2. The Disruptor exactly does this. It sequences the calls such that
      the state is accessed only by a thread at a time. If there’s a specific order in which the event handlers are to be invoked, set up the memory barrier. The latest version of Disruptor has a DSL that lets you setup the order easily.

    3. The Cache can be abstracted and accessed through the Disruptor. At a time, only a
      Reader or a Writer would get access to the cache, since all calls to
      the cache are sequential.

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

Sidebar

Related Questions

We're looking at using actors in our Scala code quite soon. We're also thinking
We have been thinking recently about integrating our J2EE system with other applications written
I am thinking about writing my own release storage server and before I do
I'm thinking about using a microcontroller with an 8051 core from Silicon Laboratories. I
I'm now thinking, is it possible to integrate Python, Perl and C/C++ and also
We are designing a fairly large brownfield application, and run into a bit of
I am currently integrating twitter bootstrap. My application layout currently includes my flash messages
I was thinking (oh god, it starts badly) about neuron networks and how it
Lately I have been thinking about investing in a worthy USB pen drive (something
I'm trying to migrate an Android application using OAuth 1.0a to OAuth 2.0. (using

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.