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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:23:38+00:00 2026-05-16T06:23:38+00:00

Issue I want to implement TransparencyChecker Interface which would verify that from any exchange

  • 0

Issue

I want to implement TransparencyChecker Interface which would verify that from any exchange in the network all trading information from other exchanges is available.

Q: How would TransparencyChecker Inferface implemented ?

Problem Background

Stock exchanges decided to share trading information with each other. If one exchange wants to share information with another exchange, it
installs an outgoing network link to dump all transactions. The network links are one-way and the exchange also shares transactions, which have
been received from incoming network links.

Code

interface Exchange {

 /**
 * Returns list of names of exchanges which receive all trading information
 * from this exchange.
 * @return list of exchanges
 */
 Set<String> getOutgoingConnections ();

 /**
 * Name of the exchange
 * @return name
 */
 String getName ();
}

interface TransparencyChecker {

 /**
 * Checks the transparency of the network. The network is the
 * collection of exchanges and each of them has a unique name.
 * @param exchanges list of exchanges in the network
 * @return true if all trading information is available for every exchange
 */
 boolean isTransparent (Set<Exchange> exchanges);

}
  • 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-05-16T06:23:39+00:00Added an answer on May 16, 2026 at 6:23 am

    Problem: Verify that all trading information from other exchanges is available

    There are several problems here, I’m going to focus on one: “All Information is Available”, but briefly, mention two other problems

    1. How do we know what “All” means? Each Exchange somehow needs to figure out what other exchnages it should be dealing with. In the real world this list probably changes day by day (different exchanges may be closed due to Public holidays) and hour by hour due to time zone differences. So getting that list of who is supposed to be there is probably tricky.
    2. What does Exchange mean? In all probability you won’t have a single machine representing an Exchange. It’s probably enough to have one of several representative of an Exchange be “Available”.

    And the brings me to the primary question: what does “Available” mean? Let’s just focus on ExchangeA and ExchangeB (if A and B can agree then what ever rules we use we can extend to A->C, A->D, B->C etc.) We could consider several different meanings for A deciding whether B is available: Can A ping B at a network level? Has A received a recent (how recent?) message from B, Can A understand the message it received from B? Perhaps B needs to send several messages to describe its state, did we receive them all? Are the messages sensible?

    I suggest that A can determine B’s availability by receiving messages from B at some agreed interval. These messages may be as simple as

    "Hello, I'm B, at 13:15 GMT on 21st January 2011, I am functioning correctly"
    

    or more complex

    "Hello, I'm B, at 13:15 GMT on 21st January 2011, I am about to send you my current status,
     it will comprise 3 messages including this one. Data XXX, YYY ..."
    "2 of three messages from B, at 13:15 GMT on 21st January 2011,  Data XXYX, QQQ ..."
    "3 of 3 from B, at 13:15 GMT on 21st January 2011,  Data PPP, QQQ ..."
    

    Now A has to then interpret these “Hearbeats”. Suppose messages are due every 5 minutes and one hasn’t arrived for 8 minutes – is that bad? Suppose one message misses, but all the rest are delivered? Suppose some are delivered out of order? You need to define your rules. You need to assume that networks do have the occasional glitch, small delays will happen.

    Following from this there are various questions such as how does B know to tell A its available. Perhaps a Pub/Sub approach is appropriate? Or should there be some central registry that all exchnages talk to, and each exchasge just asks the registry “is everybody up?”

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

Sidebar

Related Questions

Here is my issue. I have 2 classes which I want to implement in
I'm having the following issue - I want to traverse all the xml files
The issue I have is that I want to parse strings in order, so
See here for my issue: http://jsfiddle.net/FvBqA/126/ My issue is that I want to be
I want to implement Full Page Cache, but currently I have 1 issue to
I have an interesting issue where a class inherits from a class that implements
I am trying to implement a custom view, for which I want to be
I want to implement support of the XMLRPC protocol for my server that is
I want to implement some basic tracing in a simple c# (WPF) application that
I want to implement an in-app purchasing mechanism that supports both Google checkout and

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.