ស៊ីវឡាយ - Sivlay

ស៊ីវឡាយ - Sivlay Bug fixer by day, learner by night. Turning coffee into clean code! Hello everyone, I'm Sivlay YI as System Engineering (Java & Spring) at Cam info Services.

Backend Developer | Spring Boot | System Design | Banking Software | Sharing practical coding tips, backend architecture, and clean code.

07/10/2026

🌱

07/08/2026

Morning Wednesday!

07/05/2026

📍🏞️

07/01/2026

🚀 Java Tips #012 – Virtual Threads

Want to handle thousands of concurrent requests without creating thousands of platform threads?

Java Virtual Threads (Project Loom) make high-concurrency applications easier to build while using far fewer system resources.

✅ Lightweight threads
✅ Better scalability
✅ Great for I/O-bound tasks
✅ Perfect for REST APIs & Microservices

💡 Production Tip: Virtual Threads are ideal for blocking I/O operations such as database queries, HTTP calls, and file processing. They’re not a replacement for optimizing CPU-intensive workloads.

06/30/2026

🚀 Java Tips #011 – Switch Expressions

Still using the old switch statement with multiple break statements?

Modern Java introduces Switch Expressions, making your code cleaner, safer, and more readable.

✅ Returns a value
✅ No accidental fall-through
✅ Less boilerplate
✅ Perfect for enums and business rules

💡 Production Tip: Use switch expressions when mapping enums, statuses, or business rules. They make your code easier to read and maintain.

06/29/2026

🚀 Java Tips #010 – Record Class

Tired of writing boilerplate code for DTOs?

Java Records provide a concise way to create immutable data carriers with built-in constructors, accessors, equals(), hashCode(), and toString().

✅ Less boilerplate
✅ Immutable by default
✅ Perfect for DTOs and API responses
❌ Don’t use Records as JPA Entities

💡 Production Tip: Use Records for request/response DTOs, projections, and read models. Keep your JPA entities as regular classes.

06/28/2026

🚀 Java Tips #009 – Optional Class

Still checking null everywhere? 🤔

Optional helps you write cleaner and safer Java code by making the absence of a value explicit.

In this tip, you’ll learn:
✅ of(), ofNullable(), empty()
✅ map(), filter(), flatMap()
✅ orElse(), orElseGet(), orElseThrow()
✅ Common mistakes to avoid

💡 Production Tip: Use Optional as a return type when a value may be absent. Avoid using it in JPA entities, DTOs, and method parameters.

06/27/2026

🚀 Java Tips #008 – Lombok Annotations

Writing getters, setters, constructors, and loggers manually? Let Lombok handle the boilerplate so you can focus on business logic.

In this tip, you’ll learn:






💡 Production Tip: Avoid using on JPA Entities. Prefer specific annotations like , , and to prevent unexpected behavior.

06/26/2026

🚀 Java Tips #007 – Best Practices

is one of the most important annotations in Spring Boot, but it’s also one of the most misunderstood.

Use it to ensure database consistency, automatic rollback on failures, and reliable business operations.

✅ Keep transactions short
✅ Use readOnly = true for queries
✅ Place in the Service layer
❌ Avoid calling transactional methods from the same class
❌ Don’t put in Controllers

💬 What’s the biggest mistake you’ve seen with ?

06/25/2026

🚀 Java Tips #006 - Global Exception Handling in Spring Boot | Explained

Stop writing try-catch blocks in every controller! Use to centralize exception handling, return consistent API responses, and keep your controllers clean. It’s a Spring Boot best practice for building maintainable REST APIs.

Address

Earlville, NY

Alerts

Be the first to know and let us send you an email when ស៊ីវឡាយ - Sivlay posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The Organization

Send a message to ស៊ីវឡាយ - Sivlay:

Shortcuts

Share