Is the Shared Data preferred over a concurrentHashMap in terms of performance?
Is very planning to provide nonblocking/lock free collections in the future?
the shared data is actually a ConcurrentHashMap , the difference is that it copies key/values when necessary (like Buffer or JsonObject which are mutable) making sure that it is safe for you to use between different verticles.
On May 6, 2017, at 8:45 AM, ad...@cs.miami.edu wrote:
the shared data is actually a ConcurrentHashMap , the difference is that it copies key/values when necessary (like Buffer or JsonObject which are mutable) making sure that it is safe for you to use between different verticles.
If everything is in the same JVM (as OP suggested), why would copies of key/values need to be made? Can't verticles just share a reference to the same concurrent hashmap and not worry about a structure that copies keys/values among different verticles. A singleton wrapper around a hashmap should allow the concurrent hashmap to be easily shared safely... unless I am missing something?
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/5af73884-a01e-4a49-a976-ef136074ea46%40googlegroups.com.