
		<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
			<channel>
				<title>TungDaDev&#39;s Blog – stories, insights &amp; ideas</title>
				<link>https://www.tungdadev.com/blog</link>
				<description>A personal space on the cloud where I document my programming journey, sharing lessons, insights and resources for fellow developers.</description>
				<language>vi</language>
				<managingEditor>bthanhtung.ite@gmail.com (TungDaDev)</managingEditor>
				<webMaster>bthanhtung.ite@gmail.com (TungDaDev)</webMaster>
				<lastBuildDate>Sat, 06 Sep 2025 00:00:00 GMT</lastBuildDate>
				<atom:link href="https://www.tungdadev.com/tags/api/feed.xml" rel="self" type="application/rss+xml"/>
				
		<item>
			<guid>https://www.tungdadev.com/blog/api-gateway</guid>
			<title>API Gateway: Spring Cloud Gateway, Kong, Envoy và những bẫy cấu hình</title>
			<link>https://www.tungdadev.com/blog/api-gateway</link>
			<description>Mọi request đều qua Gateway, nên một dòng cấu hình sai là cả hệ thống chịu. So Spring Cloud Gateway, Kong, Envoy, dựng rate limit Redis và circuit breaker cho đúng.</description>
			<pubDate>Sat, 06 Sep 2025 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>microservices</category><category>api</category><category>devops</category>
		</item>
	
		<item>
			<guid>https://www.tungdadev.com/blog/cross-origin-basic</guid>
			<title>CORS và CSRF: preflight, origin reflection và cấu hình ở gateway</title>
			<link>https://www.tungdadev.com/blog/cross-origin-basic</link>
			<description>Sửa lỗi CORS bằng cách phản chiếu Origin là mở cửa cho attacker đọc response. Same-Origin Policy, preflight OPTIONS, khác biệt với CSRF và cách siết CORS ở API Gateway.</description>
			<pubDate>Sat, 24 Feb 2024 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>security</category><category>auth</category><category>api</category>
		</item>
	
		<item>
			<guid>https://www.tungdadev.com/blog/grpc-v2</guid>
			<title>gRPC trong Spring Boot: từ Protobuf, HTTP/2 tới cấu hình production</title>
			<link>https://www.tungdadev.com/blog/grpc-v2</link>
			<description>REST/JSON bắt đầu đuối khi service gọi nhau dày đặc? gRPC chạy trên Protobuf và HTTP/2 ra sao, cùng deadline, load balancing, keepalive với Spring gRPC trên production.</description>
			<pubDate>Sun, 08 Feb 2026 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>api</category><category>spring-boot</category><category>microservices</category>
		</item>
	
		<item>
			<guid>https://www.tungdadev.com/blog/grpc</guid>
			<title>gRPC với Spring Boot: Protobuf, HTTP/2, streaming và deadline</title>
			<link>https://www.tungdadev.com/blog/grpc</link>
			<description>Giao tiếp nội bộ giữa các microservice bằng REST/JSON tốn băng thông và thiếu streaming? Cách hoạt động của gRPC, Protobuf, HTTP/2 và code mẫu với Spring Boot.</description>
			<pubDate>Sat, 27 Dec 2025 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>api</category><category>spring-boot</category><category>microservices</category>
		</item>
	
		<item>
			<guid>https://www.tungdadev.com/blog/http-abstractions</guid>
			<title>HTTP trong Spring: ResponseEntity, ProblemDetail và chọn RestClient</title>
			<link>https://www.tungdadev.com/blog/http-abstractions</link>
			<description>Controller trả 200 cho mọi thứ, JSON lỗi mỗi service một kiểu, RestTemplate sắp bị deprecate. Dùng đúng ResponseEntity, ProblemDetail, CacheControl và chọn HTTP client.</description>
			<pubDate>Sun, 10 Mar 2024 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>api</category><category>spring-boot</category><category>java</category>
		</item>
	
		<item>
			<guid>https://www.tungdadev.com/blog/microservice-communicate-pattern</guid>
			<title>Giao tiếp giữa microservices: REST, gRPC, messaging và resilience</title>
			<link>https://www.tungdadev.com/blog/microservice-communicate-pattern</link>
			<description>Một service chậm vài giây, retry dồn lên, cả cụm sập. Cách chọn REST, gRPC hay messaging, rồi bọc từng lời gọi bằng Resilience4j, cascading timeout và tracing.</description>
			<pubDate>Sat, 21 Feb 2026 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>microservices</category><category>api</category><category>messaging</category>
		</item>
	
		<item>
			<guid>https://www.tungdadev.com/blog/session-cookies-jwt</guid>
			<title>Session, cookies và JWT: giữ đăng nhập thế nào khi chạy nhiều server</title>
			<link>https://www.tungdadev.com/blog/session-cookies-jwt</link>
			<description>Thêm server thứ hai là user bị đăng xuất lung tung? Session, cookies và JWT khác nhau ở tầng nào, scale ra sao, và cách phối hợp access token với refresh token trong Spring Boot.</description>
			<pubDate>Sun, 24 Mar 2024 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>auth</category><category>security</category><category>api</category>
		</item>
	
		<item>
			<guid>https://www.tungdadev.com/blog/spring-boot-bucket4j-rate-limiting</guid>
			<title>Rate limiting với Bucket4j và Redis: giới hạn theo user và gói dịch vụ</title>
			<link>https://www.tungdadev.com/blog/spring-boot-bucket4j-rate-limiting</link>
			<description>Nginx chặn theo IP nên chặn nhầm cả văn phòng chung NAT và không biết user nào trả tiền. Token Bucket, và rate limiting phân tán không lock với Bucket4j, Redis, Spring Boot.</description>
			<pubDate>Wed, 19 Aug 2026 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>spring-boot</category><category>redis</category><category>api</category>
		</item>
	
		<item>
			<guid>https://www.tungdadev.com/blog/spring-boot-req-lifecycle</guid>
			<title>Vòng đời request trong Spring Boot: 10 tầng từ Tomcat tới JSON</title>
			<link>https://www.tungdadev.com/blog/spring-boot-req-lifecycle</link>
			<description>Vì sao @RestControllerAdvice không bắt được lỗi 401, vì sao pool DB cạn nhanh hơn tính toán? Theo chân một request qua 10 tầng Spring Boot, từ Tomcat, filter, proxy tới HikariCP.</description>
			<pubDate>Sun, 15 Jun 2025 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>spring-boot</category><category>api</category><category>java</category>
		</item>
	
		<item>
			<guid>https://www.tungdadev.com/blog/spring-boot-restclient-fluent-api</guid>
			<title>RestClient &amp; Fluent API trong Spring Boot 3: thay RestTemplate thế nào</title>
			<link>https://www.tungdadev.com/blog/spring-boot-restclient-fluent-api</link>
			<description>RestTemplate sắp bị deprecate trên lộ trình Spring 7/8. Chuyển sang RestClient và JdbcClient, xử lý lỗi bằng onStatus(), và cấu hình đủ ba loại timeout cho đúng.</description>
			<pubDate>Sat, 15 Aug 2026 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>api</category><category>spring-boot</category><category>java</category>
		</item>
	
		<item>
			<guid>https://www.tungdadev.com/blog/spring-jackson-annotations</guid>
			<title>Jackson annotations trong Spring Boot: đặt tên, ẩn field, chặn đệ quy</title>
			<link>https://www.tungdadev.com/blog/spring-jackson-annotations</link>
			<description>Đối tác đòi snake_case, response lộ trường password, hai entity trỏ nhau gây StackOverflowError. Dùng Jackson annotations trong Spring Boot để kiểm soát JSON vào và ra.</description>
			<pubDate>Fri, 22 Sep 2023 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>spring-boot</category><category>api</category><category>java</category>
		</item>
	
		<item>
			<guid>https://www.tungdadev.com/blog/spring-jakarta-bean-validation</guid>
			<title>Jakarta Bean Validation: @Valid, @Validated và custom constraint</title>
			<link>https://www.tungdadev.com/blog/spring-jakarta-bean-validation</link>
			<description>Gắn đủ @NotBlank mà request rỗng vẫn lọt? Validation trong Spring Boot: @Valid và @Validated, custom constraint, validation group, và trả lỗi 400 cho gọn.</description>
			<pubDate>Sat, 28 Oct 2023 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>spring-boot</category><category>api</category><category>java</category>
		</item>
	
		<item>
			<guid>https://www.tungdadev.com/blog/spring-web-bind-annotations</guid>
			<title>Spring web bind annotations: sổ tay tra cứu và bẫy validation</title>
			<link>https://www.tungdadev.com/blog/spring-web-bind-annotations</link>
			<description>Tra cứu nhanh nhóm Spring Web Bind Annotations trong Spring Boot 3: từ @RequestMapping, @RequestPart, @RestControllerAdvice tới những bẫy validation dễ vấp.</description>
			<pubDate>Sat, 02 Sep 2023 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>spring-boot</category><category>api</category><category>java</category>
		</item>
	
		<item>
			<guid>https://www.tungdadev.com/blog/t24</guid>
			<title>T24 core banking cho dev tích hợp: multi-value, COB và OFS</title>
			<link>https://www.tungdadev.com/blog/t24</link>
			<description>Giao dịch trả về INAU, ban đêm giao dịch bị hạn chế vì COB? Những gì dev cần biết để tích hợp với T24 (Temenos Transact): dữ liệu multi-value, batch COB, OFS/REST và lớp middleware.</description>
			<pubDate>Sat, 04 Jul 2026 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>fintech</category><category>api</category><category>java</category>
		</item>
	
		<item>
			<guid>https://www.tungdadev.com/blog/what-happen-when-call-rest-api-update</guid>
			<title>Gọi REST API update: request PUT đi qua những gì từ client tới disk</title>
			<link>https://www.tungdadev.com/blog/what-happen-when-call-rest-api-update</link>
			<description>Bấm Save, 200ms sau data đã update. Trong 200ms đó request đi qua Load Balancer, Tomcat, Spring Security, Hibernate, PostgreSQL WAL, MongoDB, và mỗi chỗ hỏng kiểu gì.</description>
			<pubDate>Sat, 29 Jun 2024 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>api</category><category>spring-boot</category><category>java</category>
		</item>
	
		<item>
			<guid>https://www.tungdadev.com/snippets/fetch-goodreads-user-books-data</guid>
			<title>Scraping and parsing Goodreads user books data in Node.js</title>
			<link>https://www.tungdadev.com/snippets/fetch-goodreads-user-books-data</link>
			<description>Scraping Goodreads books data from user&#39;s RSS feed and parse to JSON in Node.js</description>
			<pubDate>Thu, 07 Nov 2024 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>javascript</category><category>api</category>
		</item>
	
		<item>
			<guid>https://www.tungdadev.com/snippets/using-spotify-api-to-display-currently-playing-track</guid>
			<title>How to work with Spotify&#39;s API to display currently playing track on a website?</title>
			<link>https://www.tungdadev.com/snippets/using-spotify-api-to-display-currently-playing-track</link>
			<description>Retrieve a Spotify access token to display the currently playing track on your website or application.</description>
			<pubDate>Thu, 06 Apr 2023 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>react</category><category>api</category><category>javascript</category>
		</item>
	
		<item>
			<guid>https://www.tungdadev.com/snippets/verify-github-webhooks-requests</guid>
			<title>Verifying Github webhooks requests in Node.js</title>
			<link>https://www.tungdadev.com/snippets/verify-github-webhooks-requests</link>
			<description>Verify and process incoming GitHub webhooks. How to set up listeners, validate requests, and handle Github&#39;s webhook events.</description>
			<pubDate>Sun, 09 Jul 2023 00:00:00 GMT</pubDate>
			<author>bthanhtung.ite@gmail.com (TungDaDev)</author>
			<category>git</category><category>security</category><category>api</category><category>javascript</category>
		</item>
	
			</channel>
		</rss>
	