java - Portable persistance queue -> uploader -


i need implement disk-backed queue can accept real-time profiling data multiple threads , upload data on potentially faulty transports. targeted @ java long-term need use same mechanism in objective-c, flash, javascript. targeted @ android java desktop.

this contained within single process, mq solution out. performance point of significant consideration, meaning we'd trade reliability performance.

architecture diagram

i'm curious 2 things:

  1. given above architecture, there available technology that'll or partially solve problem?
  2. given goal of re-implementing or ideally re-using mechanism in different platforms, there way build in way can used in both objective-c & android java?
  3. how's architecture look?

in case want keep limited amount of data (circular log), , able reserve fixed amount of persistent memory it, effective solution memory-mapped buffers. persister cache of several buffers, serving both profiling queue , uploader.

when reimplementing on other platforms, chances platform has no mapping facility. in case, buffers can read , written directly. can less efficient mapping memory, still no less efficient other solutions (e.g. embedded database).

as architecture, picture not reflect situation when data read persister (or else persister needed?). then, profiling queue embrace whole data (including persistent), , named profiling queue buffers in main memory, can not contiguous, better name buffer cache queue.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -