Nếu 1 hệ thống sử dụng full reactive, không có transaction nào mà chỉ get và insert dữ liệu, liệu có phải phương án hoàn hảo k vậy ạ ? Em xin cảm ơn
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.
https://tvd12.com/reactive-programming/
Mình thấy bài này viết khá rõ về lợi và hại của reactive.
Như @Nguyen Nam đã nói ở trên, việc sử dụng reactive có hiệu quả hay không nằm ở nghiệp vụ lấy dữ liệu của em, nếu dữ liệu của em là các luồng độc lập, không lên quan gì thì không sao, nhưng nó quan hệ ràng buộc kiểu lấy được cái này mới lấy được cái kia thì reactive cũng ko có nhiều ý nghĩa. Ví dụ em có 2 api:
1. Lấy user id
2. Lấy số dư theo userId
Rõ ràng là api thứ 2 phụ thuộc vào api đầu tiên, vậy câu trả lời dành cho em là tuỳ thuộc vào dự án em nhé