Posts

Here are my latest blog posts.

Which factor that mostly affects query performance?

People tend to believe that, the query is slow just because the table has lots of rows and all they need is indexing. But obviously, index is NOT free and even useless in some cases. So it's still better to know why the query is slow before coming up with final solution, right?Read More →

My lesson learned with distributed lock

Distributed lock really helps me to solve my issues, but it doesn't mean the issue will be solved immediately if I use distributed lock.Read More →

Cache problem - cache penetration

Cache penetration is one of problem we should consider first when utilizing cache in our application.Read More →

Perhaps you misunderstood setTimeout

setTimeout is used for executing some logic after a certain time. But exactly how long do we have to wait for that logic to be executed?Read More →

Be careful with try/catch and async/await

Sometimes try/catch and async/await may not work as we expect.Read More →

New way to use css variable

Css variables are amazing. The common way to use is to often set them up in :root. But they can be much more useful than that.Read More →

Replace Redux with useContext and useReducer

Today we will learn how to use useContext with useReducer to replace ReduxRead More →


© 2023 - 2024 by sonht1109