Thông thường trong thực tế anh đã gặp bài toán liên quan Producer-Consumer phổ biến chưa ạ, lượng input vào queue lớn hơn nhiều và nhỏ hơn nhiều so với lượng output khỏi queue trong thread queue, anh thường xử lý thế nào ạ
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Bài toán thường gặp nhất là giao tiếp giữa các node trong hệ thống microserice.
2. Khi khả năng xử lý của consumer quá chậm so với producer thì sẽ khiến cho broker bị đầy RAM hoặc đầy disk, vậy có lẽ sẽ cần cấu hình max capacity cho broker để drop bớt message từ producer, hoặc xây dựng cơ chế trên producer để thông báo quá tải. Tuy nhiên anh chưa bao giờ gặp trường hợp này nên chưa cấu hình bao giờ em ạ