Repository Pattern in Plain Java
Executive Summary: The repository pattern puts data access behind a domain-named interface, with an in-memory implementation for fast…
Category
Backend development is the server-side work behind an application: APIs, business logic, databases, queues and background jobs. Backend engineers pick languages such as Java, Python, Node.js or C#, decide how data is stored and how services talk to each other, and keep it all fast and correct under load. Most of the hard calls are trade-offs, such as SQL against NoSQL or a monolith against microservices.
186 articles
Executive Summary: The repository pattern puts data access behind a domain-named interface, with an in-memory implementation for fast…
Executive Summary: JPA and Hibernate replace hand-written row mapping with mutable entities managed by an EntityManager. I cover…
Executive Summary: This hands-on project builds a book catalog CRUD app with plain JDBC, H2, and a small…
Executive Summary: Production JDBC needs a connection pool and explicit transactions. I show how to configure HikariCP and…
Executive Summary: JDBC is a standard interface over vendor drivers, built on Connection, PreparedStatement, and ResultSet. Here I…
Executive Summary: A Java CI pipeline on GitHub Actions starts with one workflow file that checks out the…
Executive Summary: Debugging Java follows one loop: reproduce, isolate, form one hypothesis, and verify it with evidence. Here…
Executive Summary: Java logging works best with SLF4J as the facade and Logback as the engine, so levels…
Executive Summary: Good tests follow the test pyramid: many fast unit tests, fewer integration tests, and a thin…
Executive Summary: Mockito lets you replace a class’s dependencies with mocks, stub their responses, and verify the calls…
Executive Summary: A JUnit 5 test is a method annotated @Test that passes when its assertions hold. I…
Java latency playbook: allocation and I/O techniques, pooling, async-profiler and JMH guidance, with before/after discipline.
Eleven practices that keep an LLM feature alive in production, ranked by impact, each with a wrong example,…
Executive Summary: Java performance tuning works best as a loop: reproduce under steady state, set a baseline, profile,…