Haom.in!

Hi!

My Posts

2026

  • How to authentication?

    Discuss about Session and JWT token

    January 10, 2026
    Study
    1692 words

    There are two Kingdom on the Authentication continents, Session and JWT. The war between them never stop, but what's the difference between them and which one to use? Should I use JWT because it is so cooool? I'll share my idea in this article

  • Bye, 2025!

    Journey's End and the New Adventure

    January 1, 2026
    Anything
    376 words

    What have I done in 2025, and what I wish for 2026 🎆, the first year after me graduated from university.

2025

  • Register and verification workflow

    Try to implement a register workflow for my Spring Boot application

    December 23, 2025
    Study
    1830 words

    Authentication and Register is a key point of cyber security and a modern application. Although many web company provides authentication services (e.g. Firebase, Auth0), I want to implement a self-managed authentication system, for study (and resume). In this article, I will try to design a register workflow, including email verification.

  • Hello, jOOQ!

    December 15, 2025
    Study
    1291 words

    I've been using MyBatis for a long time to write dynamic SQL for Spring Boot application. However, each time I need to write many mappers and '.xml's. Moreover, when I want to integer cache with mapper, I need to create another repository, implement logic or add the '@Cachable' in it, and ensure I am using repo, not mapper. ChatGPT recommend jOOQ for me, say it is Type-Safe and SQL-first. 🤔, let's give it a try.