Skip to main content

Posts

Showing posts with the label queue

Tech Conversant Weekly Jan 30 - Feb 04

Topic: General                                                                                                                                              Level: All In this post, we shall catch up on the multi-faceted technological updates that happened over the past week as well as a few that seized my attention, Java has some extraordinary libraries which blow your mind such as, 1. Using DelayQueue instead of BlockingQueue, offering to the queue after the delay lapse  2. DateTimeFormatter returning strings like 'in the morning' and 'in the afternoon  3. StampedLock instead of ReadWriteLock and optimistic ReentrantReadWriteLock  4. Concurrent Accumulators instead of AtomicXXX references for concurrent updates without locks  5. Hex format  6. BinarySearch in Arrays of sorted ordering returning found value else the nearest occurrence for insertion  7. BitSet instead of a boolean array to operate the bits for and, or, xor operations  8. Phaser instead of CountDownLatch to a

Tech Conversant Weekly Jan 02 - Jan 07

Topic: General                                                                                                                                              Level: All In this post, we shall catch up on the multi-faceted technological updates that happened over the past week as well as a few that seized my attention, Microservices using shared memory for interservice communication and data processing, to speed up the processing between multiple services and achieve low latency with high throughput, creating a Virtual memory that offers shared memory space residing in the local disk for the services to leverage. The Chronicle library facilitates creating the memory region of the heap on a file for virtual memory and debugging the file with readable YAML format. The feature of the memory map file has been available since JDK4, FileChannel.map + MapMode.READ_WRITE = MappedByteBuffer (not thread safe) Other places for improvement are, 1) Thread safe access 2) Long offsets (64-bit) 3) Comple