B
Backend Course
Leroy Labs
Search lessons, concepts, projects…
Ctrl
K
0/0
Search the course
Esc
🏠
Course home
📁
Project inventory
🎯
Practice quiz
1. Foundations
6
HTTP & REST fundamentals
Spring Boot, IoC & Dependency Injection
Project structure, from layers to modules
Configuration, profiles & environment variables
Modern Java for backend work (records, Lombok, Java 25)
Aspect-Oriented Programming (AOP) & custom annotations
2. API Design
7
Controllers & DTOs, and why entities never leave the service
Object mapping with MapStruct
Input validation & custom validators
Global error handling, error codes & response envelopes
Pagination & sorting, offset vs cursor
Dynamic filtering with JPA Specifications
API documentation (OpenAPI) & versioning
3. Databases (Deep Dive)
15
Relational modeling & primary keys (UUID v4 vs v7)
Normalization & deliberate denormalization
Constraints, the database as the last line of defence
Schema migrations with Liquibase (and ddl-auto validate)
JPA entities & relationships, including cascade, orphanRemoval and owning sides
Lazy loading, the N+1 problem, @EntityGraph & JOIN FETCH
Querying, from derived queries to JPQL, native SQL, CTEs, projections and JdbcClient
Indexes, including B-tree, composite, partial, GIST and GIN
Transactions, ACID & isolation levels
@Transactional in depth: propagation, readOnly, rollback rules & traps
Concurrency control with optimistic, pessimistic & advisory locks
Soft delete, triggers & append-only tables
Money & time, the two data types that break systems
Connection pooling (HikariCP) & open-in-view
Geospatial data with PostGIS
4. Security
15
Password storage with BCrypt, Argon2 & breach checks
Sessions vs JWT, and how JWTs actually work
Signing-key rotation with kid & key rings
Refresh tokens, rotation, reuse detection & session management
Cookies, CORS & CSRF, the browser security trio
Authorization with roles, permissions, ownership & method security
OAuth 2.0 & OpenID Connect, including Google, Apple and social linking
Enterprise SSO with SAML 2.0, OIDC for companies & domain verification
MFA, covering TOTP, email codes, recovery codes, step-up & passkeys (WebAuthn)
One-time tokens for email verification, password reset & invitations
Rate limiting with sliding windows, token buckets & Bucket4j
Security headers & input attacks (XSS, SQLi, SSRF)
Encryption at rest with AES-GCM in your application
Verifying webhooks with HMAC signatures (Stripe & Paystack)
Secrets management, and what to do when one leaks
5. Async & Integrations
11
@Async & thread pools: background work inside the app
Scheduled jobs with cron, fixedDelay, sweepers & job observability
Domain events & @TransactionalEventListener
The transactional outbox pattern
RabbitMQ, covering exchanges, queues, DLQs, retries & resilience
Transactional email with SMTP, SES, Thymeleaf templates & deliverability
Real-time with polling, SSE, WebSockets/STOMP & Web Push
File storage, covering DB blobs, Cloudinary signed uploads, S3 + CloudFront
Payments with Stripe Checkout, Paystack, manual references & compensation
Ports & adapters, the Strategy pattern & pluggable providers
Generating Excel, PDF & CSV, plus async export jobs
6. Domain-Heavy Design
6
Double-entry ledgers for money you can trust
State machines for bookings, journals & reports
Approval workflows with policies, delegation, escalation & maker-checker
Multi-tenancy, from discriminator column to schema or DB per tenant
Audit logs & activity trails
Idempotency keys & exactly-once effects
7. Testing
4
The testing pyramid, unit tests & Mockito
Slice tests with @WebMvcTest & security tests
Integration tests with Testcontainers & @ServiceConnection
Testing async code, architecture rules & coverage
8. DevOps & Production
6
Docker for Java with multi-stage builds, non-root users, distroless & JVM memory
docker-compose for local dev with healthchecks, watch, profiles & tooling
CI/CD with GitHub Actions, path filters, OIDC to AWS & image tagging
Infrastructure as code & deployment targets (CDK, CloudFormation, Fargate, EC2, Cloudflare Tunnel)
Observability with logs, correlation IDs, metrics, health & error tracking
Graceful shutdown & the limits of one instance
9. Bonus: Beyond Your Projects
20
Caching & Redis strategies, invalidation and stampedes
Distributed systems fundamentals, covering CAP, consistency, consensus & failure
Distributed transactions, from 2PC to sagas (orchestration vs choreography)
Kafka, event sourcing & CQRS
Microservices vs the modular monolith, plus gateways, discovery & service mesh
GraphQL & gRPC, the other API styles
Scaling data with replication, partitioning, sharding & load balancing
Reading query plans with EXPLAIN ANALYZE & Postgres performance tuning
NoSQL & search engines (MongoDB, Cassandra, DynamoDB, Elasticsearch)
Kubernetes essentials for backend engineers
Resilience patterns (timeouts, retries, circuit breakers, bulkheads, fallbacks)
Java concurrency, covering threads, the memory model, CompletableFuture & virtual threads
OWASP Top 10 (web + API), mapped to your projects
The system design interview method (with a worked example)
Data structures & algorithms in real backends
SOLID, clean code & Domain-Driven Design
The Twelve-Factor App & feature flags
Zero-downtime database migrations (expand/contract)
Performance & load testing (k6, Gatling, profiling)
Reactive programming with WebFlux, and when it's worth it
Search the course
Search needs JavaScript.