- Microinvader
- Explanation
- CircuitBreaker
- github
- Java X Node.js
- About me
Microservices and Microinvader
Concepts of Microservices explained with a cool example
CircuitBreaker
CircuitBreaker e MicroInvader
portugues
CircuitBreaker and MicroInvader
English
Left side without CircuitBreaker, right side with CB
It is possible to see that right side is faster, even using loopback (which is faster than regular connections)
Another effect is that smooth is better on right side (no spaces appear between enemies)
It is not possible to see bombs being launched because bombs microservice were removed to trigger timeout
Download code from github
Download and Run code from:
https://github.com/gsreis/microinvader
To Run, open the ZIP file (microinvader)
mvn install (on directory)
cd target/wlp/bin
./server start microinvader
open browser and type :
http://127.0.0.1:9081/space-1.0/game.html
For CircuitBreaker:
Download microinvadercb.zip and open it
https://github.com/gsreis/microinvader
There are two directories inside it : microinvader and microinvadercb
cd microinvader
mvn install
./target/wlp/bin/server start microinvader
cd ..
cd microinvadercb
mvn install
./target/wlp/bin/server start microinvader
Open two browser instances and type (http://localhost:9081/space-1.0 and http://localhost:9082/space-1.0)
Java X Node.js
Java por dentro
Node.JS por dentro
Java OOP
Node OOP
Sintaxe comum