Anh ơi, em nhớ a có chia sẻ rằng TCP/UDP packet thô bao giờ cũng nhẹ hơn HTTP restful JSON, nên TCP /UDP packet phù hợp sử dụng socket hơn là restful đúng k ạ
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.
TCP packet raw (byte array) là ở tầng 4 trong mô hình osi, trong khi HTTP JSON ở tầng 7, như vậy thì JSON cũng từ byte array đó mà ra nên nó bằng nhau em ạ.
Việc giảm thiểu dung lượng gói tin là do framework em dùng là gì (protobuff hay msgpack) chứ không phải do network em ạ.