Slide 1

Slide 1 text

how quarkus makes development faster greener happier Holly Cummins Senior Principal Software Engineer, Quarkus London Java Community November 11, 2025 https://bsky.app/profile/hollycummins.com

Slide 2

Slide 2 text

how quarkus makes development faster greener happier cheaper Holly Cummins Senior Principal Software Engineer, Quarkus London Java Community November 11, 2025 https://bsky.app/profile/hollycummins.com

Slide 3

Slide 3 text

@holly_cummins #Quarkus #IBM #RedHat

Slide 4

Slide 4 text

@holly_cummins #Quarkus #IBM #RedHat why are you smiling?

Slide 5

Slide 5 text

@holly_cummins #Quarkus #IBM #RedHat why are you smiling? work is not a place to be happy!

Slide 6

Slide 6 text

#RedHat @holly_cummins ΑΡΙΣΤΟΤΈΛΗΣ

Slide 7

Slide 7 text

#RedHat @holly_cummins «τελειοῖ δὲ τὴν ἐνέργειαν ἡἡδονή» ΑΡΙΣΤΟΤΈΛΗΣ

Slide 8

Slide 8 text

#RedHat @holly_cummins «Η ευχαρίστηση στην δουλειά βάζει την τελειότητα στην εργασία» ΑΡΙΣΤΟΤΈΛΗΣ

Slide 9

Slide 9 text

#RedHat @holly_cummins “Pleasure in the job puts perfection in the work.” Aristotle

Slide 10

Slide 10 text

#RedHat @holly_cummins joy has business value.

Slide 11

Slide 11 text

#RedHat @holly_cummins job satisfaction is the no. 1 predictor of organizational performance

Slide 12

Slide 12 text

#RedHat @holly_cummins not all software creates joy

Slide 13

Slide 13 text

@holly_cummins #RedHat most java web frameworks are verbose there is a lot of typing

Slide 14

Slide 14 text

@holly_cummins #RedHat most java web frameworks are resource-hungry they hog cpu and ram

Slide 15

Slide 15 text

@holly_cummins #Quarkus #IBM #RedHat

Slide 16

Slide 16 text

@holly_cummins #Quarkus #IBM #RedHat “I can’t bring up the microservices in my Java dev stack

Slide 17

Slide 17 text

@holly_cummins #Quarkus #IBM #RedHat “I can’t bring up the microservices in my Java dev stack … on my brand new Apple laptop with a M1 chip and 64GB of RAM.” - fintech CTO

Slide 18

Slide 18 text

@holly_cummins #Quarkus #IBM #RedHat in production, it’s worse

Slide 19

Slide 19 text

@holly_cummins #Quarkus #IBM #RedHat in production, it’s worse

Slide 20

Slide 20 text

@holly_cummins #Quarkus #IBM #RedHat in production, it’s worse example microservices maths:

Slide 21

Slide 21 text

@holly_cummins #Quarkus #IBM #RedHat in production, it’s worse example microservices maths: airline maintenance scheduling system

Slide 22

Slide 22 text

@holly_cummins #Quarkus #IBM #RedHat in production, it’s worse example microservices maths: airline maintenance scheduling system single service: ½ core + 1 GB RAM

Slide 23

Slide 23 text

@holly_cummins #Quarkus #IBM #RedHat in production, it’s worse example microservices maths: airline maintenance scheduling system single service: ½ core + 1 GB RAM HA → 3x instances

Slide 24

Slide 24 text

@holly_cummins #Quarkus #IBM #RedHat in production, it’s worse example microservices maths: airline maintenance scheduling system single service: ½ core + 1 GB RAM HA → 3x instances ~100 microservices

Slide 25

Slide 25 text

@holly_cummins #Quarkus #IBM #RedHat in production, it’s worse example microservices maths: airline maintenance scheduling system single service: ½ core + 1 GB RAM HA → 3x instances ~100 microservices = 150 cores + 300 GB RAM

Slide 26

Slide 26 text

@holly_cummins #Quarkus #IBM #RedHat all this resource usage is expensive

Slide 27

Slide 27 text

@holly_cummins #Quarkus #IBM #RedHat slow development is expensive

Slide 28

Slide 28 text

@holly_cummins #Quarkus #IBM #RedHat why is this happening? mismatch between what we need and what the platform is optimised for

Slide 29

Slide 29 text

@holly_cummins #Quarkus #IBM #RedHat java was not designed for the cloud

Slide 30

Slide 30 text

@holly_cummins #RedHat old Java frameworks were optimised for …

Slide 31

Slide 31 text

@holly_cummins #RedHat long-lived processes old Java frameworks were optimised for …

Slide 32

Slide 32 text

@holly_cummins #RedHat long-lived processes annual (!) deployments old Java frameworks were optimised for …

Slide 33

Slide 33 text

@holly_cummins #RedHat long-lived processes annual (!) deployments late-binding old Java frameworks were optimised for …

Slide 34

Slide 34 text

@holly_cummins #RedHat long-lived processes annual (!) deployments late-binding re-configurable without restart old Java frameworks were optimised for …

Slide 35

Slide 35 text

@holly_cummins #Quarkus #IBM #RedHat Container platform machine go go go go go go go go go go go go go go

Slide 36

Slide 36 text

@holly_cummins #Quarkus #IBM #RedHat Container platform machine node.js node.js node.js node.js node.js node.js node.js machine go go go go go go go go go go go go go go

Slide 37

Slide 37 text

@holly_cummins #Quarkus #IBM #RedHat Container platform machine HotSpot Heap HotSpot Heap HotSpot Heap HotSpot Heap machine node.js node.js node.js node.js node.js node.js node.js machine go go go go go go go go go go go go go go

Slide 38

Slide 38 text

can we do better than that?

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

enter … quarkus a Java framework that gets you going faster, faster.

Slide 41

Slide 41 text

@holly_cummins #Quarkus #IBM #RedHat traditional cloud-native java stack traditional cloud-native java stack traditional cloud-native java stack traditional cloud-native java stack node.js node.js node.js node.js node.js node.js node.js go go machine go go go go go go go go go go go go go go go go go go go quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus spoiler: we made stuff better :) container orchestration machine machine machine https:/ /developers.redhat.com/blog/2017/03/14/java-inside-docker/

Slide 42

Slide 42 text

@holly_cummins #Quarkus #IBM #RedHat machine quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus container orchestration machine traditional cloud-native java stack traditional cloud-native java stack traditional cloud-native java stack traditional cloud-native java stack … a lot better quarkus native

Slide 43

Slide 43 text

@holly_cummins #Quarkus #IBM #RedHat machine quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus quarkus container orchestration machine traditional cloud-native java stack traditional cloud-native java stack traditional cloud-native java stack traditional cloud-native java stack … a lot better quarkus native (but quarkus on jvm is also way smaller than traditional java)

Slide 44

Slide 44 text

quarkus applications start fast quarkus + graalvm 0.014 Seconds rest application quarkus + open jdk 0.75 Seconds traditional cloud-native stack 4.3 Seconds https://quarkus.io/blog/runtime-performance/

Slide 45

Slide 45 text

@holly_cummins to the code! demo!

Slide 46

Slide 46 text

@holly_cummins #Quarkus #IBM #RedHat mvn quarkus:build -Pnative target/code-with-quarkus-1.0.0-SNAPSHOT-runner

Slide 47

Slide 47 text

thanks to markus eisele for the graphics code https://github.com/holly-cummins/meme-generator

Slide 48

Slide 48 text

ok but does startup time matter?

Slide 49

Slide 49 text

ok but does startup time matter? fast boot time means auto-scaling works better more resilience to load spikes

Slide 50

Slide 50 text

quarkus + GraalVM 13 MB quarkus + OpenJDK 74 MB traditional cloud-native Stack 140 MB rest application https://quarkus.io/blog/runtime-performance/ quarkus improves memory utilization

Slide 51

Slide 51 text

#Quarkus @holly_cummins

Slide 52

Slide 52 text

#Quarkus @holly_cummins hey, wanna see quarkus? hey, wanna see quarkus? hey, wanna see quarkus? hey, wanna see quarkus? hey, wanna see quarkus?

Slide 53

Slide 53 text

#Quarkus @holly_cummins hey, wanna see quarkus? hey, wanna see quarkus? hey, wanna see quarkus? hey, wanna see quarkus? hey, wanna see quarkus? uhh … are you supposed to shut down applications after using them?

Slide 54

Slide 54 text

#Quarkus @holly_cummins hey, wanna see quarkus? hey, wanna see quarkus? hey, wanna see quarkus? hey, wanna see quarkus? hey, wanna see quarkus? uhh … are you supposed to shut down applications after using them? 120 instances (!)

Slide 55

Slide 55 text

ok but does memory footprint matter?

Slide 56

Slide 56 text

ok but does memory footprint matter? in the cloud, memory footprint is money

Slide 57

Slide 57 text

@holly_cummins #Quarkus #IBM #RedHat remember the airline scheduling application?

Slide 58

Slide 58 text

@holly_cummins #Quarkus #IBM #RedHat remember the airline scheduling application? “[With Quarkus], we can run 3 times denser deployments without sacrificing availability and response times of services. ” – Thorsten Pohl

Slide 59

Slide 59 text

let’s talk about throughput. https://www.redhat.com/en/resources/mi-quarkus-lab-validation-idc-analyst-paper 48 concurrent connections Traditional cloud native stack 3555 req/s

Slide 60

Slide 60 text

let’s talk about throughput. quarkus native 3212 req/s https://www.redhat.com/en/resources/mi-quarkus-lab-validation-idc-analyst-paper 48 concurrent connections Traditional cloud native stack 3555 req/s

Slide 61

Slide 61 text

let’s talk about throughput. quarkus native 3212 req/s https://www.redhat.com/en/resources/mi-quarkus-lab-validation-idc-analyst-paper a trade-off of throughput against footprint 48 concurrent connections Traditional cloud native stack 3555 req/s

Slide 62

Slide 62 text

@holly_cummins native compilation trade-offs throughput startup time + footprint

Slide 63

Slide 63 text

@holly_cummins native compilation trade-offs throughput startup time + footprint

Slide 64

Slide 64 text

@holly_cummins native compilation trade-offs throughput startup time + footprint this is a classic tradeoff

Slide 65

Slide 65 text

but … traditional cloud native stack 3555 req/s quarkus native 3212 req/s https://www.redhat.com/en/resources/mi-quarkus-lab-validation-idc-analyst-paper a trade-off of throughput against footprint 48 concurrent connections

Slide 66

Slide 66 text

but … traditional cloud native stack 3555 req/s quarkus on jvm 6389 req/s quarkus native 3212 req/s https://www.redhat.com/en/resources/mi-quarkus-lab-validation-idc-analyst-paper a trade-off of throughput against footprint 48 concurrent connections

Slide 67

Slide 67 text

but … traditional cloud native stack 3555 req/s quarkus on jvm 6389 req/s quarkus native 3212 req/s https://www.redhat.com/en/resources/mi-quarkus-lab-validation-idc-analyst-paper no trade-off, just better :) a trade-off of throughput against footprint 48 concurrent connections

Slide 68

Slide 68 text

@holly_cummins we beat the trade-off. throughput startup time + footprint

Slide 69

Slide 69 text

@holly_cummins we beat the trade-off. throughput startup time + footprint

Slide 70

Slide 70 text

@holly_cummins we beat the trade-off. throughput startup time + footprint it’s a double-win.

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

#Quarkus @holly_cummins users care (a lot) about response time

Slide 73

Slide 73 text

better startup better footprint better throughput wait, isn’t that something for nothing?

Slide 74

Slide 74 text

@holly_cummins #Quarkus #IBM #RedHat the two ways of improving performance •trade off one thing against another •eliminate waste

Slide 75

Slide 75 text

@holly_cummins #RedHat where the win comes from

Slide 76

Slide 76 text

@holly_cummins #RedHat application frameworks were optimised for dynamism

Slide 77

Slide 77 text

@holly_cummins #RedHat application frameworks optimised for dynamism dynamism has a cost

Slide 78

Slide 78 text

@holly_cummins #RedHat paying a dynamism tax … even though the app is not dynamic

Slide 79

Slide 79 text

@holly_cummins #RedHat a highly dynamic runtime in a container is pointless

Slide 80

Slide 80 text

@holly_cummins #RedHat cloud apps are immutable now

Slide 81

Slide 81 text

@holly_cummins #RedHat cloud apps are immutable now

Slide 82

Slide 82 text

@holly_cummins #RedHat cloud apps are immutable now

Slide 83

Slide 83 text

@holly_cummins #RedHat cloud apps are immutable now

Slide 84

Slide 84 text

@holly_cummins #RedHat cloud apps are immutable now

Slide 85

Slide 85 text

@holly_cummins #RedHat cloud apps are immutable now

Slide 86

Slide 86 text

@holly_cummins #Quarkus #IBM #RedHat how does a java framework start?

Slide 87

Slide 87 text

@holly_cummins #Quarkus #IBM #RedHat how does a java framework start? build time

Slide 88

Slide 88 text

@holly_cummins #Quarkus #IBM #RedHat how does a java framework start? build time runtime

Slide 89

Slide 89 text

@holly_cummins #Quarkus #IBM #RedHat how does a java framework start? build time runtime

Slide 90

Slide 90 text

@holly_cummins #Quarkus #IBM #RedHat how does a java framework start? packaging (maven, gradle…) build time runtime

Slide 91

Slide 91 text

@holly_cummins #Quarkus #IBM #RedHat how does a java framework start? build time runtime

Slide 92

Slide 92 text

@holly_cummins #Quarkus #IBM #RedHat how does a java framework start? build time runtime

Slide 93

Slide 93 text

@holly_cummins #Quarkus #IBM #RedHat how does a java framework start? build time runtime load and parse • config files • properties • yaml • xml • etc.

Slide 94

Slide 94 text

@holly_cummins #Quarkus #IBM #RedHat how does a java framework start? build time runtime

Slide 95

Slide 95 text

@holly_cummins #Quarkus #IBM #RedHat how does a java framework start? @ @ build time runtime • classpath scanning and annotation discovery • attempt to load class to enable/disable features

Slide 96

Slide 96 text

@holly_cummins #Quarkus #IBM #RedHat how does a java framework start? @ @ build time runtime

Slide 97

Slide 97 text

@holly_cummins #Quarkus #IBM #RedHat how does a java framework start? @ @ build time runtime build a metamodel of the world

Slide 98

Slide 98 text

@holly_cummins #Quarkus #IBM #RedHat how does a java framework start? @ @ build time runtime

Slide 99

Slide 99 text

@holly_cummins #Quarkus #IBM #RedHat how does a java framework start? @ @ build time runtime start • thread pools • I/O • etc.

Slide 100

Slide 100 text

@holly_cummins #Quarkus #IBM #RedHat how does a java framework start? @ @ build time runtime ready to do work!

Slide 101

Slide 101 text

@holly_cummins #Quarkus #IBM #RedHat what if we start the application more than once? @ @

Slide 102

Slide 102 text

@holly_cummins #Quarkus #IBM #RedHat what if we start the application more than once? @ @ @ @

Slide 103

Slide 103 text

@holly_cummins #Quarkus #IBM #RedHat what if we start the application more than once? @ @ @ @ @ @

Slide 104

Slide 104 text

@holly_cummins #Quarkus #IBM #RedHat what if we start the application more than once? @ @ @ @ @ @ @ @

Slide 105

Slide 105 text

@holly_cummins #Quarkus #IBM #RedHat what if we start the application more than once? @ @ @ @ @ @ @ @

Slide 106

Slide 106 text

@holly_cummins #Quarkus #IBM #RedHat what if we start the application more than once? @ @ @ @ @ @ @ @ so much work gets redone every time

Slide 107

Slide 107 text

@holly_cummins Hibernate speed example: JTA auto-wiring

Slide 108

Slide 108 text

@holly_cummins Hibernate speed example: JTA auto-wiring Class.forName(“LikelyJTAImplementation”);

Slide 109

Slide 109 text

@holly_cummins Hibernate speed example: JTA auto-wiring Class.forName(“LikelyJTAImplementation”);

Slide 110

Slide 110 text

@holly_cummins Hibernate speed example: JTA auto-wiring Class.forName(“LikelyJTAImplementation”); Class.forName(“APossibleJTAImplementation”);

Slide 111

Slide 111 text

@holly_cummins Hibernate speed example: JTA auto-wiring Class.forName(“LikelyJTAImplementation”); Class.forName(“APossibleJTAImplementation”); Class.forName(“AnotherJTAImplementation”);

Slide 112

Slide 112 text

@holly_cummins Hibernate speed example: JTA auto-wiring Class.forName(“LikelyJTAImplementation”); Class.forName(“APossibleJTAImplementation”); Class.forName(“AnotherJTAImplementation”); …

Slide 113

Slide 113 text

@holly_cummins Hibernate speed example: JTA auto-wiring Class.forName(“LikelyJTAImplementation”); Class.forName(“APossibleJTAImplementation”); Class.forName(“AnotherJTAImplementation”); Class.forName(“NicheJTAImplementation”); …

Slide 114

Slide 114 text

@holly_cummins Hibernate speed example: JTA auto-wiring Class.forName(“LikelyJTAImplementation”); Class.forName(“APossibleJTAImplementation”); Class.forName(“AnotherJTAImplementation”); Class.forName(“NicheJTAImplementation”); Class.forName(“VeryNicheJTAImplementation”); …

Slide 115

Slide 115 text

@holly_cummins Hibernate speed example: JTA auto-wiring Class.forName(“LikelyJTAImplementation”); Class.forName(“APossibleJTAImplementation”); Class.forName(“AnotherJTAImplementation”); Class.forName(“NicheJTAImplementation”); Class.forName(“VeryNicheJTAImplementation”); …

Slide 116

Slide 116 text

@holly_cummins Hibernate speed example: JTA auto-wiring Class.forName(“LikelyJTAImplementation”); Class.forName(“APossibleJTAImplementation”); Class.forName(“AnotherJTAImplementation”); Class.forName(“NicheJTAImplementation”); Class.forName(“VeryNicheJTAImplementation”); … ~129 auto-wiring attempts

Slide 117

Slide 117 text

@holly_cummins Hibernate speed example: JTA auto-wiring Class.forName(“LikelyJTAImplementation”); Class.forName(“APossibleJTAImplementation”); Class.forName(“AnotherJTAImplementation”); Class.forName(“NicheJTAImplementation”); Class.forName(“VeryNicheJTAImplementation”); … ~129 auto-wiring attempts every single start.

Slide 118

Slide 118 text

@holly_cummins it’s not just JTA this happens for lots of internal service bindings

Slide 119

Slide 119 text

@holly_cummins JVM footprint example: Hibernate

Slide 120

Slide 120 text

@holly_cummins JVM spends time loading classes for specific databases JVM class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database footprint example: Hibernate

Slide 121

Slide 121 text

@holly_cummins JVM spends time loading classes for specific databases JVM class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database class for unused database turns out they’re never used footprint example: Hibernate

Slide 122

Slide 122 text

@holly_cummins JVM spends time loading classes for specific databases JVM turns out they’re never used JIT spends time unloading classes footprint example: Hibernate

Slide 123

Slide 123 text

@holly_cummins Hibernate example: ~500 classes which are only useful if you're running an Oracle database loaded and then unloaded

Slide 124

Slide 124 text

@holly_cummins Hibernate example: ~500 classes which are only useful if you're running an Oracle database loaded and then unloaded every single start.

Slide 125

Slide 125 text

@holly_cummins the true cost of loaded classes isn’t just memory + start time

Slide 126

Slide 126 text

@holly_cummins the true cost of loaded classes isn’t just memory + start time method dispatching:

Slide 127

Slide 127 text

@holly_cummins interface the true cost of loaded classes isn’t just memory + start time method dispatching:

Slide 128

Slide 128 text

@holly_cummins unused implementation the one we want interface unused implementation unused implementation the true cost of loaded classes isn’t just memory + start time method dispatching:

Slide 129

Slide 129 text

@holly_cummins unused implementation the one we want interface unused implementation unused implementation the true cost of loaded classes isn’t just memory + start time method dispatching:

Slide 130

Slide 130 text

@holly_cummins unused implementation the one we want interface megamorphic call slow dispatching unused implementation unused implementation the true cost of loaded classes isn’t just memory + start time method dispatching:

Slide 131

Slide 131 text

@holly_cummins the true cost of loaded classes isn’t just memory + start time the one we want interface

Slide 132

Slide 132 text

@holly_cummins the true cost of loaded classes isn’t just memory + start time the one we want monomorphic call fast dispatching interface

Slide 133

Slide 133 text

@holly_cummins how do we fix all this?

Slide 134

Slide 134 text

@holly_cummins #Quarkus #IBM #RedHat @ @ build time runtime what if we initialize at build time?

Slide 135

Slide 135 text

@holly_cummins #Quarkus #IBM #RedHat @ @ build time runtime what if we initialize at build time?

Slide 136

Slide 136 text

@holly_cummins #Quarkus #IBM #RedHat @ @ build time runtime start • thread pools • I/O • etc. what if we initialize at build time?

Slide 137

Slide 137 text

@holly_cummins #Quarkus #IBM #RedHat @ @ build time runtime ready to do work! start • thread pools • I/O • etc. what if we initialize at build time?

Slide 138

Slide 138 text

@holly_cummins #Quarkus #IBM #RedHat @ @ repeated starts are now efficient

Slide 139

Slide 139 text

@holly_cummins #Quarkus #IBM #RedHat @ @ repeated starts are now efficient

Slide 140

Slide 140 text

@holly_cummins #Quarkus #IBM #RedHat @ @ repeated starts are now efficient

Slide 141

Slide 141 text

@holly_cummins #Quarkus #IBM #RedHat @ @ repeated starts are now efficient

Slide 142

Slide 142 text

@holly_cummins #Quarkus #IBM #RedHat @ @ repeated starts are now efficient

Slide 143

Slide 143 text

@holly_cummins #Quarkus #IBM #RedHat @ @ repeated starts are now efficient

Slide 144

Slide 144 text

@holly_cummins #Quarkus #IBM #RedHat @ @ repeated starts are now efficient less wasted work

Slide 145

Slide 145 text

@holly_cummins #Quarkus #IBM #RedHat the Quarkus way enables native compilation native (graalvm) @ @ jvm build time

Slide 146

Slide 146 text

@holly_cummins #Quarkus #IBM #RedHat the Quarkus way enables native compilation native (graalvm) @ @ jvm build time

Slide 147

Slide 147 text

ok but we don’t need native

Slide 148

Slide 148 text

ok but we don’t need native quarkus is faster and smaller than legacy frameworks, even running on the jvm

Slide 149

Slide 149 text

@holly_cummins

Slide 150

Slide 150 text

@holly_cummins doing more up-front

Slide 151

Slide 151 text

@holly_cummins doing more up-front - speeds up start

Slide 152

Slide 152 text

@holly_cummins doing more up-front - speeds up start - shrinks memory footprint

Slide 153

Slide 153 text

@holly_cummins doing more up-front - speeds up start - shrinks memory footprint - improves throughput (!)

Slide 154

Slide 154 text

ok but is performance all there is?

Slide 155

Slide 155 text

ok but is performance all there is? developer joy

Slide 156

Slide 156 text

@holly_cummins #Quarkus #IBM #RedHat with quarkus, developers have to type less boilerplate

Slide 157

Slide 157 text

to the code! @holly_cummins #RedHat

Slide 158

Slide 158 text

@holly_cummins #Quarkus #IBM #RedHat mvn quarkus:dev zero-config live coding

Slide 159

Slide 159 text

@holly_cummins #Quarkus #IBM #RedHat tests are run on every code change “reverse code coverage” means only relevant tests run mvn quarkus:dev continuous testing

Slide 160

Slide 160 text

@holly_cummins #Quarkus #IBM #RedHat developer UI

Slide 161

Slide 161 text

@holly_cummins #Quarkus #IBM #RedHat zero-config testcontainers

Slide 162

Slide 162 text

@holly_cummins #Quarkus #IBM #RedHat testcontainers integration … without quarkus @TestConfiguration(proxyBeanMethods = false) public class ContainersConfig { @Bean @ServiceConnection public PostgreSQLContainer postgres() { return new PostgreSQLContainer<>(DockerImageName.parse("postgres:14")); } } public class TestApplication { public static void main(String[] args) { SpringApplication .from(MySpringDataApplication::main) .with(ContainersConfig.class) .run(args); } } @Import(ContainersConfig.class)

Slide 163

Slide 163 text

@holly_cummins #Quarkus #IBM #RedHat testcontainers integration … without quarkus

Slide 164

Slide 164 text

@holly_cummins #Quarkus #IBM #RedHat zero-config testcontainers integration the only thing you need to do to make testcontainers work is not configure anything # configure your datasource quarkus.datasource.db-kind = postgresql quarkus.datasource.username = sarah quarkus.datasource.password = connor quarkus.datasource.jdbc.url = jdbc:postgresql://localhost:5432/mydatabase # drop and create the database at startup quarkus.hibernate-orm.database.generation = drop-and-create

Slide 165

Slide 165 text

@holly_cummins #Quarkus #IBM #RedHat zero-config testcontainers integration the only thing you need to do to make testcontainers work is not configure anything # drop and create the database at startup quarkus.hibernate-orm.database.generation = drop-and-create

Slide 166

Slide 166 text

@holly_cummins #Quarkus #IBM #RedHat zero-config testcontainers integration the only thing you need to do to make testcontainers work is not configure anything

Slide 167

Slide 167 text

@holly_cummins #Quarkus #IBM #RedHat zero-config testcontainers integration the only thing you need to do to make testcontainers work is not configure anything quarkus also auto-invokes flyway and liquibase

Slide 168

Slide 168 text

@holly_cummins #Quarkus #IBM #RedHat more opinions, less boilerplate

Slide 169

Slide 169 text

@holly_cummins #Quarkus #IBM #RedHat @ApplicationScoped public class GreetingRepository { public Entity findByName(int name) { return find("name", name).firstResult(); } void persist(Entity entity) {} void delete(Entity entity) {} Entity findById(Id id) {} List list(String query, Sort sort, Object... params) { return null; } Stream stream(String query, Object... params) { return null; } long count() { return 0; } long count(String query, Object... params) { return 0; } } example: panache + hibernate

Slide 170

Slide 170 text

@holly_cummins #Quarkus #IBM #RedHat example: panache + hibernate @ApplicationScoped public class GreetingRepository implements PanacheRepository { public Entity findByName(int name) { return find("name", name).firstResult(); } }

Slide 171

Slide 171 text

@holly_cummins #Quarkus #IBM #RedHat DAO example: panache + hibernate @ApplicationScoped public class GreetingRepository implements PanacheRepository { public Entity findByName(int name) { return find("name", name).firstResult(); } } repository pattern

Slide 172

Slide 172 text

@holly_cummins #Quarkus #IBM #RedHat example: panache + hibernate

Slide 173

Slide 173 text

@holly_cummins #Quarkus #IBM #RedHat example: panache + hibernate active record pattern @Entity public class Greeting extends PanacheEntity { public String name; public LocalDate issued; @Version public int version; public static List getTodaysGreetings() { return list("date", LocalDate.now()); } }

Slide 174

Slide 174 text

@holly_cummins “but isn’t that dynamism expensive?”

Slide 175

Slide 175 text

@holly_cummins no. “but isn’t that dynamism expensive?”

Slide 176

Slide 176 text

@holly_cummins no. it’s done at build time “but isn’t that dynamism expensive?”

Slide 177

Slide 177 text

@holly_cummins #Quarkus #IBM #RedHat ok but i don’t like magic

Slide 178

Slide 178 text

@holly_cummins #Quarkus #IBM #RedHat ok but i don’t like magic enrichment happens at build time

Slide 179

Slide 179 text

@holly_cummins #Quarkus #IBM #RedHat ok but i don’t like magic enrichment happens at build time no performance drag

Slide 180

Slide 180 text

doing more up-front enables better devex runtime build time @ @

Slide 181

Slide 181 text

doing more up-front enables better devex runtime build time we can do cool code introspections here that would be too expensive and annoying to do at runtime @ @

Slide 182

Slide 182 text

@holly_cummins #Quarkus #IBM #RedHat ok but i still don’t like magic

Slide 183

Slide 183 text

@holly_cummins #Quarkus #IBM #RedHat the old ways all still work ok but i still don’t like magic

Slide 184

Slide 184 text

@holly_cummins #Quarkus #IBM #RedHat the old ways all still work but you don’t have to type all the stuff unless you want to ok but i still don’t like magic

Slide 185

Slide 185 text

@holly_cummins #Quarkus #IBM #RedHat ok but we use spring

Slide 186

Slide 186 text

@holly_cummins #Quarkus #IBM #RedHat io.quarkus quarkus-spring-web io.quarkus quarkus-spring-data-jpa ok but we use spring option 1: compatibility libraries option 2: migration tooling • konveyor • open rewrite

Slide 187

Slide 187 text

@holly_cummins #Quarkus #IBM #RedHat “After a week of development with quarkus, I was able to regain the same level of productivity as when I was developing with Spring Boot.” – Fawaz Paraïso, Decathlon

Slide 188

Slide 188 text

@holly_cummins #Quarkus #IBM #RedHat the big picture …

Slide 189

Slide 189 text

@holly_cummins #Quarkus #IBM #RedHat does being faster and lighter mean quarkus is greener?

Slide 190

Slide 190 text

@holly_cummins #RedHat density Source: Clement Escoffier experiment 1: cloud Setup: • 800 requests/second, over 20 days • SLA > 99% • AWS instances Assumptions: • Costs are for us-east-1 data centre

Slide 191

Slide 191 text

@holly_cummins #RedHat Setup: • 800 requests/second, over 20 days • SLA > 99% Assumptions: Source: Clement Escoffier x Teads cloud carbon impact of framework choice interpolated carbon metrics

Slide 192

Slide 192 text

@holly_cummins #RedHat Setup: • 800 requests/second, over 20 days • SLA > 99% Assumptions: Source: Clement Escoffier x Teads cloud carbon impact of framework choice the carbon is lower because the cost is lower interpolated carbon metrics

Slide 193

Slide 193 text

@holly_cummins #RedHat Setup: • REST + CRUD • large heap • RAPL energy measurement • multiple instances to support high load
 Assumptions: • US energy mix Source: John O’Hara experiment 2: RAPL measurements

Slide 194

Slide 194 text

@holly_cummins #RedHat Setup: • REST + CRUD • large heap • RAPL energy measurement • multiple instances to support high load
 Assumptions: • US energy mix Source: John O’Hara experiment 2: RAPL measurements quarkus on JVM has the lowest carbon … because it has the highest throughput

Slide 195

Slide 195 text

• quarkus cuts carbon by ~2-3x* • native consumes more carbon than JVM (but it’s great for serverless scenarios!) carbon measurements: conclusions

Slide 196

Slide 196 text

to the code! @holly_cummins #RedHat

Slide 197

Slide 197 text

https://github.com/quarkusio/spring-quarkus-perf-comparison

Slide 198

Slide 198 text

@holly_cummins #Quarkus #IBM #RedHat ours is the only profession where “lazy” is a compliment

Slide 199

Slide 199 text

@holly_cummins #Quarkus #IBM #RedHat we need to make it a profession where “happy” is also a compliment

Slide 200

Slide 200 text

@holly_cummins #Quarkus #IBM #RedHat tl;dpa (too long didn’t pay attention) deployment density lower cloud bill frictionless development experience Medium Nano auto-provision services zero-config live coding continuous testing developer UI greener happy, productive people

Slide 201

Slide 201 text

slides Holly Cummins IBM http://hollycummins.com/greener-faster-happier-quarkus-ljc/