<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Review on Java &amp; Software Architecture Knowledge Hub</title><link>https://samirsahoo.github.io/design-patterns-hub/tags/review/</link><description>Recent content in Review on Java &amp; Software Architecture Knowledge Hub</description><generator>Hugo</generator><language>en-US</language><copyright>© 2026 Samir Kumar Sahoo (https://github.com/samirsahoo). All rights reserved.</copyright><atom:link href="https://samirsahoo.github.io/design-patterns-hub/tags/review/index.xml" rel="self" type="application/rss+xml"/><item><title>Spring Boot Service Review Checklist</title><link>https://samirsahoo.github.io/design-patterns-hub/self-review/service-review-checklist/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/self-review/service-review-checklist/</guid><description>&lt;h2 id="how-to-use-it"&gt;How to use it&lt;a class="heading-anchor" href="#how-to-use-it" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Review your own service before release, or a team&amp;rsquo;s service at a production-readiness review. Score each area 0–3 and note evidence (links to code, tests, dashboards).&lt;/p&gt;&#10;&lt;figure class="diagram" aria-label="Nine review areas"&gt;&lt;figcaption class="diagram__title"&gt;Nine review areas&lt;/figcaption&gt;&#10; &lt;pre class="mermaid"&gt;flowchart LR&#10; A1[&amp;#34;1 · Java &amp;amp; code&amp;#34;] --&amp;gt; A2[&amp;#34;2 · Spring config&amp;#34;] --&amp;gt; A3[&amp;#34;3 · API&amp;#34;] --&amp;gt; A4[&amp;#34;4 · Data &amp;amp; tx&amp;#34;] --&amp;gt; A5[&amp;#34;5 · Security&amp;#34;]&#10; A5 --&amp;gt; A6[&amp;#34;6 · Resilience&amp;#34;] --&amp;gt; A7[&amp;#34;7 · Observability&amp;#34;] --&amp;gt; A8[&amp;#34;8 · Testing&amp;#34;] --&amp;gt; A9[&amp;#34;9 · Operations&amp;#34;]&lt;/pre&gt;&#10;&lt;/figure&gt;&#10;&lt;h2 id="1-java-and-code"&gt;1. Java and code&lt;a class="heading-anchor" href="#1-java-and-code" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Immutable value objects and records; no shared mutable state in singletons?&lt;/li&gt;&#10;&lt;li&gt;Executors bounded and named; no blocking in the common ForkJoinPool; virtual threads considered for I/O?&lt;/li&gt;&#10;&lt;li&gt;Exceptions chained, translated at boundaries, never swallowed?&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; raw types; &lt;code&gt;catch (Exception e) {}&lt;/code&gt;; &lt;code&gt;synchronized&lt;/code&gt; around blocking I/O on Java 21–23; unbounded caches.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="2-spring-configuration"&gt;2. Spring configuration&lt;a class="heading-anchor" href="#2-spring-configuration" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Constructor injection throughout; no circular dependencies?&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;@ConfigurationProperties&lt;/code&gt; records with validation; no secrets in &lt;code&gt;application.yml&lt;/code&gt;?&lt;/li&gt;&#10;&lt;li&gt;Auto-configuration customised through properties or customisers rather than exclusions?&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; field injection everywhere; &lt;code&gt;@EnableWebMvc&lt;/code&gt; in Boot; logic branching on profiles.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="3-api-design"&gt;3. API design&lt;a class="heading-anchor" href="#3-api-design" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Resource URIs, correct methods and status codes; 201 + &lt;code&gt;Location&lt;/code&gt; on create?&lt;/li&gt;&#10;&lt;li&gt;Validation at the edge; DTOs, not entities; pagination?&lt;/li&gt;&#10;&lt;li&gt;Errors as RFC 9457 Problem Details through &lt;code&gt;@RestControllerAdvice&lt;/code&gt;; no stack traces?&lt;/li&gt;&#10;&lt;li&gt;Idempotency keys for non-idempotent operations; versioning strategy?&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; 200 with error bodies; returning JPA entities; retrying POSTs.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="4-persistence-and-transactions"&gt;4. Persistence and transactions&lt;a class="heading-anchor" href="#4-persistence-and-transactions" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;All associations LAZY; N+1 checked (query counts in tests); open-in-view disabled?&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;@Transactional&lt;/code&gt; on public service methods; rollback rules understood; no remote calls inside transactions?&lt;/li&gt;&#10;&lt;li&gt;Locking strategy for contended data (&lt;code&gt;@Version&lt;/code&gt; or &lt;code&gt;FOR UPDATE&lt;/code&gt;)?&lt;/li&gt;&#10;&lt;li&gt;Flyway or Liquibase migrations with &lt;code&gt;ddl-auto=validate&lt;/code&gt;; expand–contract for breaking changes?&lt;/li&gt;&#10;&lt;li&gt;Caches with TTLs, evicted after commit?&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; EAGER &lt;code&gt;@ManyToOne&lt;/code&gt;; &lt;code&gt;ddl-auto=update&lt;/code&gt;; &lt;code&gt;@Transactional&lt;/code&gt; on private methods.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="5-security"&gt;5. Security&lt;a class="heading-anchor" href="#5-security" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;A SecurityFilterChain per area; deny by default; CSRF correct for the client type?&lt;/li&gt;&#10;&lt;li&gt;JWT validation with issuer and &lt;strong&gt;audience&lt;/strong&gt;; scopes and roles mapped?&lt;/li&gt;&#10;&lt;li&gt;Object-level checks (ownership or tenant) on every resource access (&lt;code&gt;@PreAuthorize&lt;/code&gt; or bean checks)?&lt;/li&gt;&#10;&lt;li&gt;Actuator on a separate port, with sensitive endpoints protected?&lt;/li&gt;&#10;&lt;li&gt;Dependencies scanned; secrets from a vault or secret manager?&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; role checks only (BOLA); &lt;code&gt;permitAll&lt;/code&gt; before specific rules; tokens in localStorage.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="6-resilience"&gt;6. Resilience&lt;a class="heading-anchor" href="#6-resilience" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Timeouts on every outbound call (connect and read)?&lt;/li&gt;&#10;&lt;li&gt;Retries only on idempotent calls, with backoff and jitter; not at every layer?&lt;/li&gt;&#10;&lt;li&gt;Circuit breakers and bulkheads per dependency; safe fallbacks?&lt;/li&gt;&#10;&lt;li&gt;Outbox + idempotent consumers + DLQs for messaging?&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; no HTTP client timeouts; infinite retries; &amp;ldquo;pretend success&amp;rdquo; fallbacks for payments.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="7-observability"&gt;7. Observability&lt;a class="heading-anchor" href="#7-observability" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Micrometer metrics (RED) with percentile histograms; business metrics?&lt;/li&gt;&#10;&lt;li&gt;Traces exported via OTLP; context propagated over HTTP and messaging?&lt;/li&gt;&#10;&lt;li&gt;Structured logs with trace IDs; no PII in logs?&lt;/li&gt;&#10;&lt;li&gt;SLOs with burn-rate alerts; dashboards per service?&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; high-cardinality tags; logs without correlation; alerts on every spike.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="8-testing"&gt;8. Testing&lt;a class="heading-anchor" href="#8-testing" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Fast unit tests for domain logic (real objects and fakes; mocks at boundaries)?&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;@WebMvcTest&lt;/code&gt; for controllers (validation, errors, security)?&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;@DataJpaTest&lt;/code&gt; + Testcontainers on the real database engine; migrations tested?&lt;/li&gt;&#10;&lt;li&gt;A few &lt;code&gt;@SpringBootTest&lt;/code&gt; end-to-end flows; contract tests with consumers?&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; H2 instead of the real database; &lt;code&gt;@SpringBootTest&lt;/code&gt; everywhere; flaky time-dependent tests.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="9-operations"&gt;9. Operations&lt;a class="heading-anchor" href="#9-operations" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Liveness and readiness probes correct (dependencies only in readiness); graceful shutdown?&lt;/li&gt;&#10;&lt;li&gt;Container memory sized (&lt;code&gt;MaxRAMPercentage&lt;/code&gt;); GC logs available?&lt;/li&gt;&#10;&lt;li&gt;Configuration externalised; one artifact for every environment?&lt;/li&gt;&#10;&lt;li&gt;Runbooks, on-call ownership, dependency and version upgrade plan (Java 25 LTS, Boot 4.x)?&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Red flags:&lt;/strong&gt; heap equal to the container limit; database checks in liveness; unpatched framework versions.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="scoring-rubric"&gt;Scoring rubric&lt;a class="heading-anchor" href="#scoring-rubric" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;div class="table-wrap" tabindex="0" role="region" aria-label="Table"&gt;&#10;&lt;table&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th&gt;Score&lt;/th&gt;&#10; &lt;th&gt;Meaning&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;0&lt;/td&gt;&#10; &lt;td&gt;Not considered&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;1&lt;/td&gt;&#10; &lt;td&gt;Considered, but not implemented&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;2&lt;/td&gt;&#10; &lt;td&gt;Implemented, but not verified&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;3&lt;/td&gt;&#10; &lt;td&gt;Implemented and verified (tests, dashboards, drills)&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;A service is &lt;strong&gt;ready for production&lt;/strong&gt; with no zeros in areas 4–7 and an average of at least 2.&lt;/p&gt;</description></item></channel></rss>