back-end

9 posts
5 FastAPI Depends() Tips You Might Not Know
back-end
members

5 FastAPI Depends() Tips You Might Not Know

Depends() is one of the most powerful features in FastAPI, but many developers only use it for basic use cases. In this blog, I’ll share 5 helpful tips with Depends() that can make your code cleaner,
OTIS Ho
Using FastAPI’s TestClient for Quick API Validation
back-end
members

Using FastAPI’s TestClient for Quick API Validation

When building APIs with FastAPI, testing is very important. But sometimes, you don’t want to set up complicated testing tools just to check if an endpoint works. That’s where TestClient comes in. It’
OTIS Ho
Custom Middleware in FastAPI: From Logging to Header Validation
back-end
members

Custom Middleware in FastAPI: From Logging to Header Validation

In this blog, I will show you how to create custom middleware in FastAPI. Middleware is useful when you want to do something before or after a request is processed by your API. We will learn how to:
OTIS Ho
Building a Simple chatbot with Rust + Qdrant
AI
members

Building a Simple chatbot with Rust + Qdrant

IntroductionIn this article, we'll explore how to use the Rust programming language and the vector database Qdrant to build a simple yet effective chatbot. The main point to cover a step by step guide
Timo
Timo
Setup Jenkins worker node that support building Docker Image.
devops
members

Setup Jenkins worker node that support building Docker Image.

Usually when we setup a Jenkins server, we usually use the master to build jobs. The master node is in charge of scheduling jobs, assigning slave nodes, and sending builds to slave nodes for execution
COPPER Nguyen
Set up and work with MySQL on Windows with XAMPP
WEB
members

Set up and work with MySQL on Windows with XAMPP

I. What is XAMPP?XAMPP is an open-source server setup for testing projects on a local machine before making them available to everyone over the web. This web app development server comes pre-installed
Eddy
Redis Pub/Sub and Redis Stream
WEB
members

Redis Pub/Sub and Redis Stream

Is Redis Stream better than Redis Pub/Sub for my chat service?That was a question for me when I first read about Redis Stream - a new data type introduced with Redis 5.0. So, I will go into a lot of
Drew
ActiveRecord performance: N+1 queries
WEB
members

ActiveRecord performance: N+1 queries

Reference: https://guides.rubyonrails.org/active_record_querying.html#eager-loading-associations What is N+1 query? The N+1 query problem is one of the common performance antipatterns in ORMs. It ha
Bond
Rails: "find_in_batches" vs."in_batches" in depth comparison
WEB
members

Rails: "find_in_batches" vs."in_batches" in depth comparison

Rails, just like many other frameworks, has a lot of magic (and surprises too). Last month, when I had a chance to do a performance tuning for the ActiveRecord #find_in_batches and #find_batch I found
Tran Khanh