Code Review: find problems in the Order class code calculating delivery cost.
Java
What is offset in Kafka? How does the offset happen? When to use manual commit vs automatic?
If you have two beans, how do you choose one by default?
What is the difference between WHERE and HAVING?
What types of indexes exist in databases?
Implement the Strategy pattern for calculating delivery costs and a service for its application.
How is dependency injection recommended in Spring?
Besides indexes, what else do you pay attention to when optimizing queries?
Do you have experience rewriting legacy products?
What is the difference between EntityGraph and Join Fetch?
Is there a constructor in an abstract class?
How to configure producer and consumer interaction in Kafka if the consumer service is replicated on 3 instances and updates product prices? How to avoid race conditions?
How to re-read a message from Kafka?
What is the disadvantage of using material code as a partition key in Kafka?
What operations are undesirable on a large table with tens of millions of records? How to optimize getting the COUNT of products on sale from a very large table?
How to organize data transfer from three microservices (products, prices, orders) in a microservice architecture?
How to handle invalid messages in Kafka?
What is the difference between soft and hard references?
How do you use OpenAPI?
Tell about your work experience