7. Web application architecture
● Single machine web server
● Two-tier web application
● Multi-Tier application
● Message Bus architecture
● Service-Oriented architecture
9. Single machine web server
● All in one server
o Real IP
o Web server
o Application server
o Database
o Storage
o Compute
● All in one server
o Security problem
o Shared CPU
o Shared memory
o SPOF
o Maintenance =
Downtime
14. Multi-tier web application
● Separate responsibility to teams
● Most of security at first tier
● Independant scaling
● Front-end can talk with APIs internaly
● Every tier can have it’s own hardware
requirements
● Global Load Balancer
17. Message Bus application
● Many to Many communication between
servers
● Replaces constantly polling the database
● Asyncronious, not sorted
● Loosly coupled systems
● Support different hardware
20. Service Oriented Architecture
● Loosly coupled systems
● Service oriented company - small teams
● Can provide services to third parties
● Can subscribe to services from third parties
26. Caching
cache hit ratio = cache lookups / cache hits
● Store most recent data
● Store most used data
● Store only repeatedly used data
Cache invalidation - TTL
27.
28. Threads and Queues
● Single thread process vs Multi thread
process
● Queues FIFO, LIFO