Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

of

Functional microservices with Java EE Slide 1 Functional microservices with Java EE Slide 2 Functional microservices with Java EE Slide 3 Functional microservices with Java EE Slide 4 Functional microservices with Java EE Slide 5 Functional microservices with Java EE Slide 6 Functional microservices with Java EE Slide 7 Functional microservices with Java EE Slide 8 Functional microservices with Java EE Slide 9 Functional microservices with Java EE Slide 10 Functional microservices with Java EE Slide 11 Functional microservices with Java EE Slide 12 Functional microservices with Java EE Slide 13 Functional microservices with Java EE Slide 14 Functional microservices with Java EE Slide 15 Functional microservices with Java EE Slide 16 Functional microservices with Java EE Slide 17 Functional microservices with Java EE Slide 18 Functional microservices with Java EE Slide 19 Functional microservices with Java EE Slide 20 Functional microservices with Java EE Slide 21 Functional microservices with Java EE Slide 22 Functional microservices with Java EE Slide 23 Functional microservices with Java EE Slide 24 Functional microservices with Java EE Slide 25 Functional microservices with Java EE Slide 26 Functional microservices with Java EE Slide 27 Functional microservices with Java EE Slide 28 Functional microservices with Java EE Slide 29 Functional microservices with Java EE Slide 30 Functional microservices with Java EE Slide 31 Functional microservices with Java EE Slide 32 Functional microservices with Java EE Slide 33
Upcoming SlideShare
What to Upload to SlideShare
Next
Download to read offline and view in fullscreen.

0 Likes

Share

Download to read offline

Functional microservices with Java EE

Download to read offline

Functional microservices with Java EE at DevNexus 2018

Related Books

Free with a 30 day trial from Scribd

See all
  • Be the first to like this

Functional microservices with Java EE

  1. 1. Functional microservices with JavaEE V´ıctor Orozco - @tuxtor February 22, 2018 GuateJUG 1
  2. 2. About • SW Developer/Engi- neer/Architect • Oracle Workforce Trainer/Edx Micromasters • Jug Leader GuateJUG • @tuxtor • http://vorozco.com 2
  3. 3. Zen State Zen = Stakeholders don’t call you, unless it’s your birthday • Productivity • HR Availability • Stability and predictability • Scalability • Money 3
  4. 4. Zen State Some sprints ago I had ”birthdays” on daily basis 4
  5. 5. How my birthdays started Please V´ıctor help us to do Microservices 5
  6. 6. !Birthday Please V´ıctor help us to choose a well known language, with a well known framework, for achieving great stability, spending the least money, and take advantage of our existing codebase. 6
  7. 7. Lesson 1: Microservices are a mindset revolution
  8. 8. Monolith Figure 1: Regular monolith - Credits: Markus Eisele 7
  9. 9. ESB Figure 2: ESB - Credits: Markus Eisele 8
  10. 10. Microservices Figure 3: Microservices - Credits: Markus Eisele 9
  11. 11. Microservices Advantages • Small codebases • Better software practices • Fault tolerance • Scalability Disadvantages • Tooling overhead • Debugging • Distributed transactions • Latency • Dependency 10
  12. 12. Microservices Disadvantages Hype Driven Development 11
  13. 13. Lesson 2: Functional Microservices are not the same for everybody
  14. 14. How POC from Sr. to Jr. • Vert.x • Spring Boot • DropWizard • Akka • NodeJS . . . • JavaEE 12
  15. 15. J2EE Jobs J2EE Guatemala 2018 13
  16. 16. HR • From the top five universities at country only three teach Java properly • The other two teach .NET • Sillicon Valley off-shores take best developers 14
  17. 17. Lesson 3: You don’t need to be 100% ”microservice compliant”
  18. 18. Microservices - JavaEE JavaEE is one of the most anti-hype frameworks J2EE 1.2 (December 12, 1999) 15
  19. 19. Microservices - JavaEE Implementation • Iterative refactoring - Do it by waves • Practical refactoring - Extract an already existing service • New services - New services talk to monolith 16
  20. 20. Microservices - JavaEE Figure 4: JavaEE technologies - Credits: Reza Rahman 17
  21. 21. Microservices - JavaEE 18
  22. 22. Microservices - JavaEE 19
  23. 23. Microservices - JavaEE 20
  24. 24. Microservices - Implementations • Wildfly Swarm • KumuluzEE • Open Liberty • TomEE • Payara Micro 21
  25. 25. Microservices - Payara Current target: Microprofile 1.2 • Microprofile 1.2 • JavaEE Web Profile • JCache New deployments • Micro JavaEE server (CLI) • Uber-Jar/Fat-Jar 22
  26. 26. Demo
  27. 27. JavaEE Micro - Demo Java 8, JAX-RS, CDI, EJB, Microprofile https://github.com/tuxtor/payara-demo https://github.com/tuxtor/omdb-demo 23
  28. 28. Payara Micro - Traditional JavaEE Granted • EJB • JTA • JAX-RS • CDI 24
  29. 29. Payara Micro - Micro JavaEE MicroProfile: JAX-RS, CDI (Per service), Config, Fault Tolerance Implementation: EJB, JTA (Per service) Todo: Location, Deployment, Orchestation, Balancing, Consistency, Patterns 25
  30. 30. Config @Inject @ConfigProperty (name = "omdbservice.url") String omdbDaemonServiceUrl ; 26
  31. 31. Fault tolerance • Circuit Breaker • Bulkhead • Fallback • Retry • Timeout 27
  32. 32. Fault tolerance - Fallback, Timeout @GET @Path("/{id:[a-z]*[0 -9][0 -9]*}") @Fallback(fallbackMethod = " findByIdFallBack ") @Timeout(TIMEOUT) public Response findById(@PathParam("id") final String imdbId) { ... } public Response findByIdFallBack (@PathParam("id") final String imdbId) { ... } 28
  33. 33. Thank you • me@vorozco.com • http://vorozco.com • http://github.com/tuxtor/slides This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Guatemala License. 29

Functional microservices with Java EE at DevNexus 2018

Views

Total views

346

On Slideshare

0

From embeds

0

Number of embeds

20

Actions

Downloads

8

Shares

0

Comments

0

Likes

0

×