What is API?
- API in this day and age refers to the approach in which we use http as a medium to communicate and execute functionality
Exercise
- Find a way to find trending git repositories over curl using github api
curl -G https://api.github.com/search/repositories --data-urlencode "sort=stars" --data-urlencode "order=desc" --data-urlencode "q=language:java"
- For all the microservices exposed over API’s ensure API changes are backward compatible and this has to be an integration test.
Container – Docker
- Container is an isolated process which gets
- its own process tree
- its own network interfaces
- its own users
- its own file mounts
- resources (cpu,ram)
- Container consume less resources if designed/created carefully
