Em đang saveall 1 list có rất nhiều dữ liệu, thực hiện lưu trữ rất lâu. Em muốn hỏi là khi thực hiện như vậy thì nên làm như nào ạ.
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. Em có thể lưu dữ liệu tạm ở Local và sau đó save dần dần: tuy nhiên cách này đòi hỏi em phải cứng tay 1 chút trong xử lý I/O cụ thể là làm việc với File, cũng có rủi ro là cái server local có thể bị hết disk.
2. Em có thể sử dụng kafka, em cứ push dữ liệu và kafka, sau đó ở ở đầu consumer, em sẽ lấy ra dần dần và save vào db: cách này thì đơn giản nhưng lại phát sinh thêm chi phí hạ tầng.