“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 interview Q&As. If the job description says “low latency” application, then be prepared. Even if “low latency” experience is not a requirement, all employers like candidates who can not only build systems that perform well, but also can stress test (e.g. JMeter), profile…...
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…
Read more ›
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…...