lululemon Interview Question

explain process of Garbage collection in java. How does 2phase commits work in microservices