Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Each project has its own directory with a README.md file that has instructions.
<br>Learn about long-running processes, HTTP and `curl`.
1. [Servers & Databases](./server-database) - `impl/server-database`
<br>Build a server that takes data from a database and serves it in `json` format.
1. [Multiple Servers](./multiple-servers) - `impl/multiple-servers`
<br>Build and run file & API servers behind Apache in a simple multi-server architecture.

## Authors

Expand Down
18 changes: 18 additions & 0 deletions multiple-servers/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Multiple servers

![Architecture of this solution](./readme-assets/architecture.png)

Create file server to serve static HTML files. Create an API server that serves JSON from a database. Run the API and file server as two separate servers. Try to load the website & see CORS issue. Put apache in front of the file server and the API so they are on a single port and hostname. Learn about how to run services in VMs in the cloud. Replicate this local setup in the cloud on a single VM, with all services running on the same host. Route requests to the service.

Timebox: 10 days

Learning objectives:

- Basic microservices ideas, separating concerns of services
- Configure apache to talk to 2-3 copies of the API server
- Some web security ideas (CORS)
- Reverse proxy configuration, routing on path
- Health checks
- Running applications in the cloud on a raw VM
- Using cloud-hosted services like databases
- Multi-environment configuration
Binary file added multiple-servers/readme-assets/architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.