Bỏ qua, tới nội dung chính
Cà Phê & Code Cà Phê & Code
  • Trang chủ
  • Chuyên mục
    • Go
    • Java
    • RabbitMQ
    • Spring
    • Vert.x

    • Tất cả chuyên mục
  • Sê-ri
  • Thẻ
  • Luyện thi
  • Giới thiệu
  • Liên hệ
Đăng nhập
  1. Trang chủ
  2. Thẻ
  3. future

#future

2 bài viết
Vert.x 08/07/2025 4 phút

Future.all báo hỏng sau 21 ms, Future.join đợi đủ 301 ms mới báo cùng một lỗi

Ghép năm lời gọi bất đồng bộ theo ba cách và đo thời gian, khác biệt giữa all với join khi có lỗi, và cái bẫy compose không hề tuần tự hoá.

#hieu-nang#future#vertx#bat-dong-bo#zero-to-hero
1
Vert.x 07/07/2025 4 phút

Ném ngoại lệ trong map thì thành thất bại, ném trong onSuccess thì bị nuốt mất

Future và Promise của Vert.x: compose dừng ở bước hỏng, recover khác otherwise ở đâu, ngoại lệ đi về đâu, và chi phí thật của một chuỗi ba bước.

#promise#future#vertx#bat-dong-bo#zero-to-hero
2
Tìm kiếm
Admin

Nơi cà phê gặp dòng code

Xem thêm
Chuyên mục
  • Java 100
  • Go 60
  • Spring 60
  • RabbitMQ 40
  • Vert.x 10
Xem nhiều nhất
Lỗi đua có mặt trong cả 900 lần chạy. Test bắt được 0% — cho tới khi tôi thêm một dòng sleep 05/08/2026 · 48
Bốn mươi dòng kiểm trước khi bấm nút triển khai — mỗi dòng đến từ một lần đã hỏng 10/08/2026 · 41
Từ 866MB xuống 126MB — và ảnh nhỏ nhất lại in tiếng Việt thành dấu hỏi 06/08/2026 · 38
Biến, kiểu nguyên thuỷ và kiểu tham chiếu: vì sao 127 khác 128 05/05/2026 · 31
Từ mã nguồn tới lúc chạy: mổ một file .class ra xem bên trong 04/05/2026 · 31
Thẻ phổ biến
#zero-to-hero#java#100-ngay-java#spring#go#golang#hieu-nang#rabbitmq#dong-thoi#van-hanh#bao-mat#collections#thiet-ke#csdl#jvm#spring-boot#jpa#stream#vertx#do-tin-cay#kien-truc#spring-security#test#oop#jmh#tong-ket#amqp#docker#exchange#spring-amqp#bat-dong-bo#cong-cu#error#functional#go-loi#http#interface#io#logging#luong-ao#routing#spring-mvc#bo-nho#bytecode#consumer#generics#json#trien-khai#bat-bien#build#cache#context#dlx#event-loop#exception#gc#giam-sat#jackson#jdbc#lambda#lo-trinh#maven#monitoring#retry#sql#testcontainers#tracing#bat-dau#channel#collectors#future#giao-dich#ha#hikaricp#java-time#jdk#jfr#junit#module#optional#owasp#pattern-matching#phan-quyen#postgresql#queue#quorum-queue#record#rest#sealed#timezone#transaction#unicode#vertx-web#ack#actuator#async#at-least-once#atomic#autoboxing#bigdecimal#blockingqueue#cas#cau-hinh#classloader#classpath#cluster#comparator#completablefuture#concurrenthashmap#constructor#cors#criteria#csp#csrf#da-hinh#database#deadlock#default-method#deque#dieu-khien#docker-compose#do-luong#do-tre#dto#encapsulation#encoding#equals#error-handling#executor#fanout#federation#flaky#flatmap#flyway#forkjoin#graalvm#gradle#hashcode#hashmap#headers#hibernate#idempotency#inner-class#iterator#javac#javap#jit#jlink#jmm#jstack#jwt#kafka#ke-thua#khoa#kieu-du-lieu#lazy-queue#list#management#mang#map#mat-khau#memory-leak#message#message-queue#method#mockito#native-image#nio#oauth2#observability#oidc#outbox#package#pecs#phan-trang#phu-thuoc#poison-message#pprof#prefetch#producer#prometheus#promise#publisher-confirms#pubsub#qos#reactive#redelivery#redis#regex#resource#restclient#router#sap-xep#scheduled#sdkman#serialization#servlet#set#shovel#slf4j#slice#solid#spring-data#string#struct#structured-concurrency#su-kien#switch#synchronized#testing#thiet-ke-api#thread#threadlocal#thread-pool#thymeleaf#time#tls#toan-tu#topic#topology#treemap#ttl#tuning#type-erasure#upload#validation#varargs#verticle#vhost#volatile#webclient#worker
Lưu trữ
  • Tháng 8/2026 52
  • Tháng 7/2026 114
  • Tháng 6/2026 64
  • Tháng 5/2026 30
  • Tháng 7/2025 10
Theo dõi blog

Nhận email mỗi khi có bài viết mới. Không quảng cáo, huỷ bất cứ lúc nào.

Hoặc dùng RSS
Cà Phê & Code Cà Phê & Code

Blog cá nhân chia sẻ kiến thức lập trình, kiến trúc phần mềm và công nghệ.

Liên kết
  • Trang chủ
  • Chuyên mục
  • Thẻ
  • Giới thiệu
  • Liên hệ
Chuyên mục nổi bật
Java (100)Go (60)Spring (60)RabbitMQ (40)Vert.x (10)

© 2026 Cà Phê & Code. Bảo lưu mọi quyền. Được xây dựng bằng Spring Boot & Thymeleaf.