Lecture 11 - Microservices
Lecture 11 - Microservices
Lecture 11 - Microservices
web server
Runs a program
Give me /myApplicationEndpoint
HTTP Response
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
<html><head>...
HTTP
HTTP
Response
Request
(JSON)
Presentation tier
Database
HTTP
HTTP
HTTP
HTTP
Response
Response
Request Request (JSON)
(JSON)
HTTP
HTTP
Request Request
HTTP
HTTP
Microservice Response Microservice Response
Web Servers (JSON) (JSON)
Database
Frontend
Backend Server
Mod 1 Mod 2
Mod 3 Mod 4
Mod 5 Mod 6
Database
Database
Frontend
Database Database Database
“Dumb”
AJAX
Backend
Mod 4 Engine
Search Analytics
Mod 5 Facebook
Mod 6 Crawler
Database
Frontend
Database Database Database
“Dumb”
AJAX
Backend
Mod 4 Engine
Search Analytics
Mod 5 Facebook
Mod 6 Crawler
Database
Frontend
Database Database Database
“Dumb”
AJAX
Backend
Mod 4 Engine
Search Analytics
Mod 5 Facebook
Mod 6 Crawler
• Building a car.
• Have a team for tires
• Have a team for drivetrain
• Have a team for seating
• Have a team for paint
• Have a team for ...
Backend
Orders, shipping, catalog
Database
Orders, shipping, catalog
“Full Stack”
Catalog
“2 pizza teams”
• Requirements
• Restaurant owners can create restaurant pages, add links
to website, add food keywords, update address and
business info
• Restaurant reviewers can post reviews of a restaurant, see
reviews they've written, comment on other reviews.
• All users can search for a restaurant based on its food
keywords and address.
• Users have accounts, with profile information and settings.
Frontend
database”
Database Database Database
“Dumb”
Backend AJAX
• Search Engine
REST service
Analytics
• Updates are sent via HTTP Java, Neo4J C#, SQLServer Python, Firebase
request
• No guarantee that those updates
occur immediately
• Instead, guarantee that they occur
eventually
• Can force some ordering, but
that’s expensive
Frontend
Database Database Database
“Dumb”
Backend AJAX
• Fundamentals of DevOps:
• https://blogs.oracle.com/developers/getting-
started-with-microservices-part-four