Sobes.tech

What is the main problem with this implementation? - Sending messages without a key - Sending without checking message size - The producer sends a message to a topic to complete its initialization - Sending messages without checking cluster connection - Consumer groups are not configured properly.

128

Tell me about the team. What kind of team was it, who was in it, how many people?

123

What two methods of the Java Object class must be implemented consistently for an object to be used as a key in HashMap?

123

How to implement auditing of all HTTP calls in a large monolithic service with multiple controllers (call time, URL, request/response body, processing time)?

123

Have you had any experience working with fintech domains — payments, finance, billing, integration?

122

Tell me about the project in Lepton. What kind of project is it?

122

What other collections do you know besides HashMap that can be used?

122

What does the ACID abbreviation mean in the context of database transactions?

119

What is the main problem of this implementation - Index may not be mandatory - Incorrect index type used to achieve the desired goals. - There is a composite index - The table is not normalized - No use of transactions

118

What is the main disadvantage of recursion compared to iteration?

118

What is the main problem of this implementation Lack of Consumer Group separation Configured wait time in polling Integration with the Diptychi system Incorrect message storage policy Lack of message filtering settings in the listener factory configuration No separate batches

115

What is the main problem with the chosen solution structure? - Hard initialization of final fields - The structure does not guarantee the uniqueness of services in the cache - Service search complicates testing - No usage template. Strategy of flexibility. - Service locator complicates debugging Code: public class CarMaintenanceReminder { private final ServiceLocator serviceLocator; private final ReminderCache reminderCache; public CarMaintenanceReminder() { this.serviceLocator = new ServiceLocator(); this.reminderCache = new ReminderCache(); } public Reminder getOilChangeReminder(String carId) { Reminder reminder = reminderCache.getReminder(carId); if (reminder == null) { reminder = serviceLocator.getService(ReminderService.class).createOilChangeReminder(carId); reminderCache.addReminder(reminder); } return reminder; } } class ServiceLocator { public <T> T getService(Class<T> serviceClass) { return serviceClass.cast(generateService(serviceClass)); } private Object generateService(Class<?> serviceClass) { if (serviceClass == ReminderService.class) { return new ReminderService(); } return null; } } class Reminder { private final String carId; public Reminder(String carId) { this.carId = carId; } } class ReminderService { public Reminder createOilChangeReminder(String carId) { return new Reminder(carId); } } class ReminderCache { private final Map<String, Reminder> cache; public ReminderCache() { this.cache = new HashMap<>(); } public Reminder getReminder(String carId) { return cache.get(carId); } public void addReminder(Reminder reminder) { cache.put(reminder.getCarId(), reminder); } }

113

Did you include not only the model itself but also metadata in the DLT topic?

112

If the readiness probe fails, will the Kafka Listener work or not?

111

class User { String name; public int hashCode() { return name.hashCode(); } public boolean equals(Object o) { return o instanceof User u && name.equals(u.name); } } Map<User, String> map = new HashMap<>(); User u = new User(); u.name = "Bob"; map.put(u, "developer"); u.name = "Alice"; System.out.println(map.get(u));

107

Choose the most appropriate answer - The coordinator says it does not support asynchrony - There is no transaction consistency mechanism between Service B and Service S - Encryption is absent in REST connections - No error handling in service records

104

If your service must respond immediately to a webhook and then process asynchronously, how to avoid losing MDC context?

86

[name] asked: what practical experience do you have with REST or gRPC? Have you used OpenAPI/Swagger and what tools did you use for working with APIs?

46
/5