Developing Microservices using Spring - Beginners Guide * Disclaimer: There are various topics covered in this session, each topic is worth a 2 day workshop session in itself, so this will cover only the very basics and try to provide a birds eye view of the various concepts.
24
Embed
Developing Microservices using Spring - Beginner's Guide
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Developing
Microservices
using Spring-
Beginners Guide
* Disclaimer: There are various topics covered in this session, each topic is worth a 2 day workshop session in itself, so this will cover only the very basics and try to provide a birds eye view of the various concepts.
Agenda● Microservices
● What ?● Why ?
● Challenges of a distributed system
● Building Microservices using Spring● Spring Boot● Spring Cloud & Netflix OSS
● Conclusion
All Roads Lead to Microservices
Cloud
aPaaS
Continuous Delivery
Dev Ops
Agile
Microservices
Microservices – What ?
The term "Microservice Architecture" has sprung up over the last few years to describe a particular way of designing software applications as suites of independently deployable services.-Martin Fowler
● RxJava is Java implementation of MS Reactive Extensions.
● A library for composing asynchronous and event-based programs by using Observable sequences.
● Netflix created RxJava to simplify server side concurrency, a single “heavy” client request that is executed in parallel on the server.
● The service layer API method return an Observable<T> getData(), this can be asynch or synch, and its transparent to the caller of this service.
● Can be achieved using Java Futures, but it supports one value, not for a sequences. Also calling Future.get() will be a blocking.
● Callbacks can be used for asynchronous execution and works well for single level of execution, but things gets complicated with nested Callbacks (callback hell !).