When choosing Mutiny in Quarkus REST

Scenario 1: Simple Synchronous Operation @GET @Produces(MediaType.TEXT_PLAIN) public String greeting() { return "Hello!"; } Use Case: You have a straightforward operation that completes quickly and doesn’t involve any asynchronous tasks (database queries, network calls, etc.). Why No Uni: In this case, using Uni would introduce unnecessary complexity. You can simply return the result directly as a String. Scenario 2: Asynchronous Operation with a Single Result @GET @Produces(MediaType.APPLICATION_JSON) public Uni<MyData> getData() { return Uni.
2 minutes to read

Enable Logging for Java 11 HttpClient

Introduction Java’s java.net.http.HttpClient (introduced in Java 11) provides a modern and standardized way to perform HTTP requests. Enabling detailed logging for this client offers invaluable insights when troubleshooting network issues, analyzing request/response behavior, and optimizing application performance. To enable the log, add this JVM option -Djdk.httpclient.HttpClient.log=errors,requests when staring your application. Code example I use this library as a client to call OpenAI API, the library uses httpclient for making http request.
One minute to read

Python Datatype - Strings

Strings: The Textual Heart of Python In Python, strings are sequences of characters used to represent text. You can think of them as an ordered collection of letters, numbers, symbols, and spaces. To define a string, you enclose your text within: Single quotes, double quotes Python is flexible with strings. You can enclose them in eithers in single quotes ’ or double quotes ". s1 = 'Hello world' # Single quotes s2 = "Hello world" # Double quotes The key is to be consistent, but there are times you’ll want to include one type of quote within a string enclosed by the other type.
2 minutes to read

Two worth living places in Vietnam

When considering where to live in Vietnam, it is important to define what makes a place “worth living”. Nowadays, remote work is more feasible, especially for software programmers like me. So for me, a worth living place is one that is easy to get around, affordable for living, and offers plenty of opportunities to immerse oneself in nature. Criteria Walking condition If you love to walk, Vietnam can be challenging place to live.
2 minutes to read

First open-source contribution

Motivation First contribution to an open-source is the significant milestone in my journey as a software engineer, it’s a great way to learn and give back to the community. I’m currently working for Gridly, which is a content management and localization system. Gridly has a feature called Connector and it uses Airbyte internally for syncing data from other sources to Gridly. Airbyte Gridly connector So, I decided to write Gridly as a source connector to sync data to other destinations.
One minute to read

Start to write

Language learning has always been a challenge for me, even with my native Vietnamese. Despite years of studying English, I still find myself working hard to improve. No, the paragraph above is not my original one. It’s the version from Gemini. And my second one as well. And … But that doesn’t matter now. I’ve decided to start a blog to practice my writing. As a software engineer, I believe it will help me deepen my technical knowledge and build a personal portfolio.
One minute to read