rabi.
  • Home
  • Writing
  • Snippets
  • Tools
  • YouTube
Snippets

Snippets / Tags

spring-boot

4 spring-boot code snippets across 1 language. Copy-paste solutions from production code.

4

snippets

java

4 snippets

Environment Utility for Java

Thread-safe Java helper for reading environment variables, system properties, and profile-aware config with typed accessors and sanitised snapshots.

javaconfigurationenv+2
INTERMEDIATEOct 16, 2025

Rate Limit Annotation for Spring Boot (Token Bucket)

Custom @RateLimit annotation that throttles Spring Boot endpoints per-IP using a thread-safe token bucket. No external dependencies.

javaspring-bootaop+2
INTERMEDIATEDec 1, 2025

Reusable Testcontainers Postgres Base Class for Spring Boot

An abstract @Testcontainers base class that boots a Postgres container once per test suite and wires it into Spring Boot via @DynamicPropertySource.

javaspring-boottestcontainers+2
INTERMEDIATEMay 6, 2026

Transactional Outbox Publisher in Spring Boot

A scheduled outbox publisher that drains a Postgres outbox table using JDBC and SKIP LOCKED for safe concurrent processing.

javaspring-bootoutbox-pattern+2
ADVANCEDApr 14, 2026
rabi.

Building production software and writing about what I figure out.

SDE II at Amazon

Content

  • Writing
  • Snippets
  • Tools
  • YouTube

Snippets

  • Java
  • AWS CLI
  • React

Popular Tags

  • React Hooks
  • TypeScript
  • Spring Boot
  • Next.js

Explore

  • About
  • Professional Journey
  • Contact
  • Search
  • Submit a Snippet
  • RSS Feed

Connect

Let's build something together.

Send a message →

Newsletter

Weekly posts on backend engineering and system design.

Subscribe →

© 2026 Rabinarayan Patra. All rights reserved.

Privacy PolicyDisclosureBuilt with Next.js