Why did you choose UUID for taskId instead of Long/BigInt?
Java
Was the status model common to the entire system or only within a certain number of services?
What dependency injection methods exist in Spring?
How to read a large CSV file (1GB+)? How to parse and solve the line break problem at chunk boundaries?
What happens if there are fewer partitions than consumers?
Table home_codes ID | code 10 | 123 20 | 456 30 | 456 35 | 999 40 | 777 45 | 999
To which objects can you refer inside a lambda?
How was the interaction divided — what went through Kafka, and what was direct?
What types of indexes were used? Were there any negative costs associated with the indexes?
How to block threads or synchronize them in Java?
What types of NoSQL databases exist and when should they be used?
What principle was used to configure alerts?
Do you consider your service high-load? Can you explain with numbers?
Tell us about JVM memory: what does it consist of and how is it cleaned?
What types of relationships in Hibernate do you know and how to describe them? What entity states exist?
//Given an array of numbers where all numbers except one have a pair, //find the number that appears only once // <= [1, 0, 3, -2, 9, 9, 1, -2, 0] // => 3 int find(int[] arr){ Map<Integer, Integer> freq = new HashMap<>(); for (int i : arr){ freq.merge(i, 1, Integer::sum); } return freq.entrySet().stream() .filter(e -> e.getValue() == 1) .findFirst().get().getKey() .orElseThrow( () -> new NoSuchElementException("no unique elements") ); }
How do you see your role in a team? What is important to you in teamwork?
Tell about the hierarchy of collections in Java.
What is the difference between the @Bean annotation and @Component? When should you use one over the other?
Are you familiar with reactive systems and the principles of reactive programming?