Root Directory / Code
The Logic
Architecture
A repository of technical deep-dives, architectural notes, and experimental snippets from the backend trenches.
Notes / 01 AUG 9, 2024
How to show traceId in log when using Async in Spring Boot
Sometimes you will face a condition where traceId does not appear in the log when using multi thread or async process.
public TestAsyncRes testAsync(TestAsyncReq request, HttpServletRequest servletRequest) {
log.info("Start test async with request: " + request);
TestAsyncRes response = TestAsyncRes.builder()
.responseCode("00")
.responseMessage("Success")
.build();
CompletableFuture<Void> future = CompletableFuture.runAsync(() -> {
log.info("Start async process...");
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
});
log.info("After async process");
return response;
}
Tutorial
Integrate Jenkins to Gitlab Webhook
Jenkins is an open source automation server. It helps automate the parts of software development relate to building, testing, and deploying, facilitacing continous integration, and continous delivery.
Read Article arrow_forward
Code Middleware Service Translator Json to ISO8583 using Spring Boot Jpos
I want to share my experience in creating a middleware service to translate from rest (json) to iso8583 message.
View Code code
Documentation / Feed
01
Building Private Network for My Server
NETWORK
BACKEND
SECURITY
07 min read
Read Article
02
N+1 Query Problem
BACKEND
SQL
03 min read
Read Article
03
Reverse Proxy + Load Balancer + API Gateway
DEVOPS
CLOUD
03 min read
Read Article
04
Difference between SSL, TLS, and HTTPS
ARCHITECTURE
SECURITY
03 min read
Read Article
05
Spring Boot ISO8583 Server using Jpos
BACKEND
ISO
06 min read
Read Article