Which range of port numbers (0-65535) is reserved for well-known services like HTTP, FTP, and SSH?
Your server creates a new thread for each client connection….
Your server creates a new thread for each client connection. With 1000 concurrent clients, performance degrades significantly. What’s the BEST solution?
Match each algorithm type to its correct description:
Match each algorithm type to its correct description:
Each client thread in your server needs to maintain its own…
Each client thread in your server needs to maintain its own session data (username, score, etc.). What’s the BEST design to avoid synchronization issues?
You add a new optional field to your protobuf message. Old c…
You add a new optional field to your protobuf message. Old clients that don’t know about this field connect to your updated server. What happens?
What is a primary purpose of middleware in distributed syste…
What is a primary purpose of middleware in distributed systems?
What is the main advantage of using a thread pool instead of…
What is the main advantage of using a thread pool instead of creating a new thread for each client connection?
When sending a large amount of data that is split into small…
When sending a large amount of data that is split into smaller packets, do all packets follow the same route to the server? Why or why not? (2 points) What are the key differences between UDP and TCP in this scenario? How do these differences impact the reliability and efficiency of data transfer? (2 points) If you had to choose between UDP and TCP for this data transfer, what questions would you ask to determine the best option? Provide at least two questions and explain why each is important. (2 points)
A student was given this JSON protocol specification: Reques…
A student was given this JSON protocol specification: Request: { “type”: “add”, “numbers”: } Success Response: { “ok”: true, “sum”: 6 } Error Responses: – Empty array: { “ok”: false, “error”: “numbers array cannot be empty” } – Missing field: { “ok”: false, “error”: “numbers field is required” } – Invalid type: { “ok”: false, “error”: “numbers must be an array” } A server was implemented, we send two requests and got the following responses: Request 1: { “type”: “add”, “numbers”: } Response 1: { “ok”: true, “result”: 15 } Request 2: { “type”: “add”, “numbers”: [] } Response 2: { “ok”: false, “sum”: 0, “error”: “numbers field is required” } 1. List all protocol violations across both responses. 2. Write out how the responses should look like.
Why is it not necessary to use the port number and an IP add…
Why is it not necessary to use the port number and an IP address like 172.217.22.14:443 when you look for something on your Webbrowser.