Slide 1

Slide 1 text

JFuture IoT powered by MicroProfile Mads Opheim @MadsOpheim

Slide 2

Slide 2 text

Добры дзень! 2

Slide 3

Slide 3 text

Why? 3 The Motivation

Slide 4

Slide 4 text

New office, new lights Just Add Coffee. And Enterprise Developers. 4

Slide 5

Slide 5 text

5 The Architecture

Slide 6

Slide 6 text

What is MicroProfile? 6

Slide 7

Slide 7 text

Community - individuals, organizations, vendors 7

Slide 8

Slide 8 text

Current MicroProfile implementations 8

Slide 9

Slide 9 text

Eclipse MicroProfile 3.2 (Nov 2019) 9 MicroProfile 3.2 JAX-RS 2.1 JSON-P 1.1 CDI 2.0 Config 1.3 Fault Tolerance 2.0 JWT Propagation 1.1 Health 2.1 Metrics 2.2 Open Tracing 1.3 Open API 1.1 = Updated = No change from last release (MicroProfile 3.1) = New Rest Client 1.3 JSON-B 1.0 Standalone Context Propagation 1.0 Reactive Streams Operators 1.0 Outside umbrella Reactive Messaging 1.0

Slide 10

Slide 10 text

10 MicroProfile in the Light Control Service

Slide 11

Slide 11 text

11 The Architecture

Slide 12

Slide 12 text

12 CDI

Slide 13

Slide 13 text

13 JAX-RS and JSON-P

Slide 14

Slide 14 text

14 MicroProfile in the Gateway Service

Slide 15

Slide 15 text

15 The Architecture

Slide 16

Slide 16 text

16 Config

Slide 17

Slide 17 text

17 Health Check: Response – Happy Days

Slide 18

Slide 18 text

18 Health Check: Response – Not So Happy Days

Slide 19

Slide 19 text

19 Health Check: Liveness http://localhost:/health/live

Slide 20

Slide 20 text

20 Health Check: Readiness http://localhost:/health/ready

Slide 21

Slide 21 text

21 Metrics

Slide 22

Slide 22 text

22 Application-specific Metrics

Slide 23

Slide 23 text

23 Fault Tolerance – Retry and Circuit Breaker

Slide 24

Slide 24 text

24 Fault Tolerance – Timeout

Slide 25

Slide 25 text

25 Fault Tolerance – Fallback

Slide 26

Slide 26 text

26 REST Client

Slide 27

Slide 27 text

27 REST Client There be dragons.

Slide 28

Slide 28 text

28 Maturity

Slide 29

Slide 29 text

29 MicroProfile in the Time and Weather Services

Slide 30

Slide 30 text

30 The Architecture

Slide 31

Slide 31 text

31 OpenAPI

Slide 32

Slide 32 text

32 OpenAPI

Slide 33

Slide 33 text

33 DEMO

Slide 34

Slide 34 text

34 Things We’ve Learned

Slide 35

Slide 35 text

New, cool things keep on coming! 35

Slide 36

Slide 36 text

36

Slide 37

Slide 37 text

37 Lombok - YAGNI?

Slide 38

Slide 38 text

38 Inject Logger - YAGNI?

Slide 39

Slide 39 text

39 A Better Logger

Slide 40

Slide 40 text

App servers differ... 40

Slide 41

Slide 41 text

41

Slide 42

Slide 42 text

42 Other Cool Techy Stuff

Slide 43

Slide 43 text

43 Local Maven Repo

Slide 44

Slide 44 text

44 Faking an API

Slide 45

Slide 45 text

45

Slide 46

Slide 46 text

Future Work 46

Slide 47

Slide 47 text

Eclipse MicroProfile 3.2 (Nov 2019) 47 MicroProfile 3.2 JAX-RS 2.1 JSON-P 1.1 CDI 2.0 Config 1.3 Fault Tolerance 2.0 JWT Propagation 1.1 Health 2.1 Metrics 2.2 Open Tracing 1.3 Open API 1.1 = Updated = No change from last release (MicroProfile 3.1) = New Rest Client 1.3 JSON-B 1.0 Standalone Context Propagation 1.0 Reactive Streams Operators 1.0 Outside umbrella Reactive Messaging 1.0

Slide 48

Slide 48 text

48 Open Tracing

Slide 49

Slide 49 text

49 JWT Auth

Slide 50

Slide 50 text

50

Slide 51

Slide 51 text

51

Slide 52

Slide 52 text

52

Slide 53

Slide 53 text

Everything’s on GitHub! 53 https://github.com/mehmandarov/microprofile-iot https://mehmandarov.com/microprofile-101-part1 https://madsop.github.io/microservices-with-microprofile https://rieckpil.de/category/microprofile/ More info on https://microprofile.io

Slide 54

Slide 54 text

Thanks! @MadsOpheim @RMehmandarov 54