I have a design question. I have an app(let's call it app A) gathering statistics from a system, by regularly polling each component in the system. I have a second app(app B) which is supposed to make some decisions and enforce them into the same system, that app B is gathering statistics from. For the decision process, app B needs some info from the statistics gathered by app A. So, at certain moments in time(this would be 10-100s times per second) app B makes a request to app A to get some info(i.e. some up to date statistics about the system). What's the best solution to implement this exchange of info from app A to app B? I was thinking of 2 solutions:1) an RPC-style solution, using a message queue (RabbitMQ) 2) a database-based solution, have a table where app A publishes the most up to date info and app B reads it whenever needed. Please provide some insight on whether any of these two would make a good solution or not. Any other suggestions are welcome. Thanks!
Database or message queue for exchange of data between two apps
190 Views Asked by cmcaba At
1
There are 1 best solutions below
Related Questions in DATABASE
- When dealing with databases, does adding a different table when we can use a simple hash a good thing?
- How to not load all database records in my TListbox in Firemonkey Delphi XE8
- microsoft odbc driver manager data source name not found and no default driver specified
- Cloud Connection with Java Window application
- Automatic background scan if user edit column?
- Jmeter JDBC Connection Configuration Parametrization of Database URL for accessing SQL Database
- How to grant privileges to current user
- MySQL: Insert a new row at a specific primary key, or alternately, bump all subsequent rows down?
- Inserting and returning autoidentity in SQLite3
- Architecture: Multiple Mongo databases+connections vs multiple collections with Express
- SQL - Adding a flag based on results within a query - best practice?
- Android database query not returning any results
- Developing a search and tag heavy website
- Oracle stored procedure wrapping compile error with inline comments
- Problems communicating with mysql in php
Related Questions in MESSAGE-QUEUE
- Message Queues: Per Message Guarantees
- mq_timedsend() returns error 14 "bad address"
- Posix message queues and the command line?
- Best way to ensure an event is eventually published to a message queuing sytem
- Azure Service Bus Queue grouped messages
- How to interrupt an xQueueReceive() API in FreeRTOS?
- Spring JMS - Unable to connect to broker URL with embedded Broker
- How to do error handling with EasyNetQ / RabbitMQ
- Setting message priority in RabbitMQ PHP
- Using a queuing system to do custom logic
- Storm-jms Spout collecting Avro messages and sending down stream?
- How many tcp connection created on a queuing protocol such as ZeroMQ
- RabbitMQ: How to send Dead Letter Exchange from Erlang client
- What happens to message in queue of 1 length which is not acked in rabbitmq?
- Can I view raw message in iron.io webpage?
Related Questions in DATA-EXCHANGE
- Send data from one module to another module with type safety
- Can and should an ontology be used to generate code for data converters?
- Any .NET implementation of Concise Binary Object Representation(CBOR)?
- Exchange data between 2 user at the same url
- Database or message queue for exchange of data between two apps
- How to integrate Power Automate with BIM360
- data exchange of two windows WPF
- Is there a way to extract data from Nagios as if it was a web service?
- Is there a way to return data from the called azure function back to logic app who called it?
- How to keep track of dirty controls in a dialog
- php (or better choice?) for sending turn data to a simple webapp game
- Recovering structs sent over a network
- Control anylogic through external programs
- How to create batch process to upload Oracle DB data to AWS Data Exchange?
- Lighting diagrams language and notation
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Consider reversing the flow of information. Have App A tell App B when something changes, possibly via a message/event using a message queue. App B can then keep it's own highly-available version of App A's data and query it quickly and efficiently without crossing the wire or process boundaries. This highly-available store could simply be in-memory, or some sort of high-performance key-value store.