
REST vs GraphQL vs gRPC for Java Services Compared Fairly
Choose between REST, GraphQL and gRPC for a Java service by who calls it, how data is shaped and what tooling you need, with a verdict for each case.
Tag
18 posts

Choose between REST, GraphQL and gRPC for a Java service by who calls it, how data is shaped and what tooling you need, with a verdict for each case.

Compare Vaadin and React on a Spring Boot backend for internal tools: team skills, delivery speed, API surface, testing, UX ceiling and long term cost.

Faces managed beans were removed in Faces 4.0 and CDI beans replace them. See the annotation mapping, the differences in behavior and a safe migration order.

Compare Redis, Hazelcast and Infinispan for shared caching and state in Java: deployment model, data structures, near caches, consistency and when each fits.

Compare Caffeine, Guava Cache and Ehcache for in process caching in Java: eviction, refresh, statistics, Spring support and when you need a shared cache.

Define unit, integration and end-to-end tests in a Java service by what each one starts, what it can catch and what it costs to run.

Compare Hibernate, Spring JdbcClient and jOOQ for reporting queries with grouping, windows and large result sets, and pick one by the shape of the query.

Choose synchronous requests or asynchronous messages between Java services based on whether the caller needs an answer now, and design for failure either way.

Compare Vaadin with Thymeleaf plus htmx for Java teams: server side state or HTML over the wire, component depth, testing, SEO and scaling behaviour.

Decide between volatile, synchronized and atomic classes for shared state, with the counter example that shows why volatile alone is not enough.

Compare the Core Profile, Web Profile and full Platform of Jakarta EE, see which specifications each includes and choose the smallest one you need.

Compare the G1, ZGC, Shenandoah, Parallel and Serial collectors on pauses, throughput and footprint, and pick one with a test on your own workload.