“Metrics Core” is a very handy framework to gather insights & tune performance of high-throughput and low-latency services. Here is a very simple core Java multi-threaded application that gathers metrics with this library. Step 1: Create a maven project Press enter for all prompts to use the default values.
mvn archetype:generate -DgroupId=com.homeassigment -DartifactId=homeassign-1-test
Q1. Explain “pull” vs “push” paradigms (aka imperative/interactive vs reactive) with respect to processing data in programming? A1. Interactive/imperative Programming (Pull): is all about asking for something and getting it in return. One common pattern in this world is the iterator pattern, which loops through and pull data out of…...
Q1. How much memory space does a primitive type int occupy in Java? A1. 4 bytes. Q2. Java objects get stored in the heap memory space, but how about the primitive variables? A2. It depends. 1) Primitives defined locally would be on the stack.
public class Primitive
public static void main(String args)
int number = 1; // This is on the stack.
2) If a primitive is…...
This assumes that you have read the basics on Java GC at Java Garbage Collection interview Q&A to ascertain your depth of Java knowledge. This is a must know topic for those who like to work on low latency applications. Q1. In what ways does GC impact latency and throughput…...
Extends Writing low latency applications in Java Q&A. Tip #1: Use a RTSJ (Real Time Specification for Java ) JVM. IBM, Oracle, and other smaller vendors have implemented this, but it comes at a cost. Oracle’s JavaRT, IBM’s real-time WebSpere, and aicas JamaicaVM to name a few popular ones. In…
Read more ›
Have you seen job advertisements requiring Java candidates to work in real-time, low latency, and high throughput systems? Wondering what questions you will be asked? You will be quizzed on the low latency application you had recently worked on especially the outcomes in terms of the latencies, response times, and…...
Q. Have you seen job advertisements requiring Java candidates to work in real-time or high volume transaction processing systems? If you are applying for such jobs, you can be quizzed on Big O notation. Here are some basics to brush up on. Big-O gives you the upper bound. For example, if you need to…...