Files
lab_server/notes.md
2026-02-19 21:05:02 -05:00

34 lines
2.3 KiB
Markdown

# Project Server Notes
## Checkpoint 1
1. Lots of software today connects to remote servers, and can't work offline.
What are some advantages of using a program or an app which uses a remote
server? What are some advantages of using a program or an app which is
completely local?
An advantage to using a remote server is that data is stored centrally on that server, so if something happens to your personal computer the data on the server will still be intact. Similarly, if something happens to your computer, you can access the server on another computer. An advantage to a completely local server is that you do not need internet connection to access the data, also if the server is on your personal computer, only you can make changes to the data.
2. You just ran a server on your own computer, and connected to it as a client
on the same computer. In what other situations might it be useful to run a
server on your computer, where you're the only client, on the same computer?
Since you do not need intenet connection, it might be useful to run a server on your computer so that you can access it without needing internet connection. Since you are the only one that can make changes, it offers you full control over the server, providing more security.
## Checkpoint 2
3. Choose a program (Steam), web app (Google Docs), or app (Weather) that you use
frequently. You can't observe the calls this program is making to its server
(unless you have fancy tools), but you can infer some of the calls based on the
program's behavior. Describe a few routes which you think may exist for your
chosen program's backend server.
On google docs, GET and POST requests are most likley used. When I log in, all my documents are displayed. The program is likely making a GET request to the server to retrieve my documents from the server. Similarly, a POST request is being used when I create a new document.
4. In your own words, what is an exception? When might it be useful to handle an
exception? When is it better not to handle an exception, and instead let the
program crash?
An exception might take place when something minor or something forseen happens, like an unexpected input. A crash woud be useful when there is something very wrong or something unforseen. This could be an error within the server itself.