Slide 1

Slide 1 text

6 ½ ridiculous things to do with Quarkus Holly Cummins IBM

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

quarkus is used in production by:

Slide 4

Slide 4 text

quarkus is used in production by: • telcos

Slide 5

Slide 5 text

quarkus is used in production by: • telcos • retailers

Slide 6

Slide 6 text

quarkus is used in production by: • telcos • retailers • banks

Slide 7

Slide 7 text

quarkus is used in production by: • telcos • retailers • banks BORING!

Slide 8

Slide 8 text

1

Slide 9

Slide 9 text

https://github.com/holly-cummins/gen-alpha-iser

Slide 10

Slide 10 text

was this an easy demo?

Slide 11

Slide 11 text

was this an easy demo? super easy

Slide 12

Slide 12 text

tell your boss you learned… @ServerResponseFilter

Slide 13

Slide 13 text

2

Slide 14

Slide 14 text

https://github.com/phillip-kruger/quarkus-jokes

Slide 15

Slide 15 text

was this an easy demo?

Slide 16

Slide 16 text

was this an easy demo? yes, phillip krüger wrote all of it :)

Slide 17

Slide 17 text

tell your boss you learned… the dev ui now has assistants to help you write + debug code

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

3

Slide 26

Slide 26 text

https://github.com/quarkiverse/quarkus-bon-jova-rockstar

Slide 27

Slide 27 text

https://github.com/quarkiverse/quarkus-bon-jova-rockstar

Slide 28

Slide 28 text

was this an easy demo?

Slide 29

Slide 29 text

was this an easy demo?

Slide 30

Slide 30 text

was this an easy demo? -friends don’t let friends write compilers

Slide 31

Slide 31 text

was this an easy demo? -friends don’t let friends write compilers -bytecode generation :(

Slide 32

Slide 32 text

was this an easy demo? -friends don’t let friends write compilers -bytecode generation :( -parsing :( :(

Slide 33

Slide 33 text

tell your boss you learned… -the quarkiverse is very welcoming to new extensions -writing a compiler is a bad idea (but if you do go there, use antlr)

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

spec

Slide 37

Slide 37 text

spec (by dylan beattie)

Slide 38

Slide 38 text

spec (by dylan beattie) cost: 5 beers + 1 napkin

Slide 39

Slide 39 text

spec (by dylan beattie) cost: 5 beers + 1 napkin time: 1 night

Slide 40

Slide 40 text

spec spec (by dylan beattie) cost: 5 beers + 1 napkin time: 1 night

Slide 41

Slide 41 text

spec none, obvs spec (by dylan beattie) cost: 5 beers + 1 napkin time: 1 night

Slide 42

Slide 42 text

spec none, obvs spec (by dylan beattie) cost: 5 beers + 1 napkin time: 1 night implementation

Slide 43

Slide 43 text

spec none, obvs spec (by dylan beattie) cost: 5 beers + 1 napkin time: 1 night implementation cost: $0

Slide 44

Slide 44 text

spec none, obvs spec (by dylan beattie) cost: 5 beers + 1 napkin time: 1 night implementation cost: $0 time: 3 weeks

Slide 45

Slide 45 text

spec none, obvs spec (by dylan beattie) cost: 5 beers + 1 napkin time: 1 night implementation cost: $0 time: 3 weeks

Slide 46

Slide 46 text

spec none, obvs implementation spec (by dylan beattie) cost: 5 beers + 1 napkin time: 1 night implementation cost: $0 time: 3 weeks

Slide 47

Slide 47 text

spec none, obvs implementation cost: $36,312.03 spec (by dylan beattie) cost: 5 beers + 1 napkin time: 1 night implementation cost: $0 time: 3 weeks

Slide 48

Slide 48 text

spec none, obvs implementation cost: $36,312.03 time: 3 months spec (by dylan beattie) cost: 5 beers + 1 napkin time: 1 night implementation cost: $0 time: 3 weeks

Slide 49

Slide 49 text

gen ai: what could possibly go wrong? 4

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

https://www.computerworld.com/article/4059383/openai-admits-ai-hallucinations-are-mathematically-inevitable-not-just-engineering-flaws.html rate of hallucination when summarizing public information:

Slide 52

Slide 52 text

o1: 16% https://www.computerworld.com/article/4059383/openai-admits-ai-hallucinations-are-mathematically-inevitable-not-just-engineering-flaws.html rate of hallucination when summarizing public information:

Slide 53

Slide 53 text

o1: 16% o3: 33% https://www.computerworld.com/article/4059383/openai-admits-ai-hallucinations-are-mathematically-inevitable-not-just-engineering-flaws.html rate of hallucination when summarizing public information:

Slide 54

Slide 54 text

o1: 16% o3: 33% o4-mini: 48% https://www.computerworld.com/article/4059383/openai-admits-ai-hallucinations-are-mathematically-inevitable-not-just-engineering-flaws.html rate of hallucination when summarizing public information:

Slide 55

Slide 55 text

solution: guardrails

Slide 56

Slide 56 text

“LLM-as-a-judge”

Slide 57

Slide 57 text

“LLM-as-a-judge” BORING!

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

was this an easy demo?

Slide 60

Slide 60 text

was this an easy demo?

Slide 61

Slide 61 text

was this an easy demo? -adding guardrails is simple

Slide 62

Slide 62 text

was this an easy demo? -adding guardrails is simple -but … the demo needed

Slide 63

Slide 63 text

was this an easy demo? -adding guardrails is simple -but … the demo needed -a prompt the llm would hallucinate about 50% of the time

Slide 64

Slide 64 text

was this an easy demo? -adding guardrails is simple -but … the demo needed -a prompt the llm would hallucinate about 50% of the time -a reliable guardrail

Slide 65

Slide 65 text

tell your boss you learned… -guardrails are important - llm-as-a-judge is still an llm -manage context wiseley - context cruft lowers response quality - context growth can cause problems

Slide 66

Slide 66 text

observability 5

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

user code

Slide 69

Slide 69 text

user code quarkus framework

Slide 70

Slide 70 text

application user code quarkus framework

Slide 71

Slide 71 text

application user code quarkus framework extensions

Slide 72

Slide 72 text

application user code quarkus framework extensions

Slide 73

Slide 73 text

application user code quarkus framework client extensions

Slide 74

Slide 74 text

application user code quarkus framework client extensions

Slide 75

Slide 75 text

application user code quarkus framework client extensions

Slide 76

Slide 76 text

application user code quarkus framework client extensions

Slide 77

Slide 77 text

application user code quarkus framework client extensions observability stack

Slide 78

Slide 78 text

application user code quarkus framework client metrics extensions observability stack

Slide 79

Slide 79 text

application user code quarkus framework client metrics traces extensions observability stack

Slide 80

Slide 80 text

application user code quarkus framework client metrics traces logs extensions observability stack

Slide 81

Slide 81 text

application user code quarkus framework observability client client metrics traces logs extensions observability stack

Slide 82

Slide 82 text

application user code quarkus framework observability client client metrics traces logs extensions observability stack

Slide 83

Slide 83 text

application user code quarkus framework observability client client dev service (testcontainers) extensions observability stack

Slide 84

Slide 84 text

application user code quarkus framework observability client client dev service (testcontainers) extensions observability stack BORING!

Slide 85

Slide 85 text

application user code quarkus framework client extensions

Slide 86

Slide 86 text

application user code quarkus framework client extensions

Slide 87

Slide 87 text

application user code quarkus framework client extensions minecraft server

Slide 88

Slide 88 text

application user code quarkus framework minecraft client client extensions minecraft server

Slide 89

Slide 89 text

application user code quarkus framework minecraft client client extensions minecraft server

Slide 90

Slide 90 text

application user code quarkus framework minecraft client client extensions minecraft server mod

Slide 91

Slide 91 text

application user code quarkus framework minecraft client client dev service (testcontainers) extensions minecraft server mod

Slide 92

Slide 92 text

No content

Slide 93

Slide 93 text

https://github.com/quarkiverse/quarkus-observability-minecraft

Slide 94

Slide 94 text

No content

Slide 95

Slide 95 text

tell your boss you learned… -you can do a lot with interceptors -dev services are awesome

Slide 96

Slide 96 text

No content

Slide 97

Slide 97 text

https://github.com/quarkiverse/quarkus-observability-minecraft

Slide 98

Slide 98 text

https://github.com/quarkiverse/quarkus-observability-minecraft

Slide 99

Slide 99 text

was this an easy demo?

Slide 100

Slide 100 text

was this an easy demo?

Slide 101

Slide 101 text

was this an easy demo? -extension was easy, minecraft mod was hard

Slide 102

Slide 102 text

was this an easy demo? -extension was easy, minecraft mod was hard -minecraft APIs

Slide 103

Slide 103 text

was this an easy demo? -extension was easy, minecraft mod was hard -minecraft APIs -lack documentation

Slide 104

Slide 104 text

was this an easy demo? -extension was easy, minecraft mod was hard -minecraft APIs -lack documentation -change between minor versions

Slide 105

Slide 105 text

was this an easy demo? -extension was easy, minecraft mod was hard -minecraft APIs -lack documentation -change between minor versions -client-server sync of injected behaviour is hard

Slide 106

Slide 106 text

tell your boss you learned… -typesafe objects are better than a chat box -… but small models may struggle with structured data -gen ai adds latency

Slide 107

Slide 107 text

how quick can quarkus go? 6

Slide 108

Slide 108 text

No content

Slide 109

Slide 109 text

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

Slide 110

Slide 110 text

was this an easy demo?

Slide 111

Slide 111 text

was this an easy demo?

Slide 112

Slide 112 text

was this an easy demo? -writing the cli was easy -native compilation was easy -native compilation + awt + mac is very hard

Slide 113

Slide 113 text

No content

Slide 114

Slide 114 text

i tried:

Slide 115

Slide 115 text

i tried: native awt on mac

Slide 116

Slide 116 text

i tried: native awt on mac liberica vm mac + tuning of build-time and runtime classes

Slide 117

Slide 117 text

i tried: native awt on mac liberica vm mac + tuning of build-time and runtime classes graalvm community container

Slide 118

Slide 118 text

i tried: native awt on mac liberica vm mac + tuning of build-time and runtime classes graalvm community container mandrel container

Slide 119

Slide 119 text

tell your boss you learned… •picocli + quarkus is cool •native is clever tech •…but native has dragons •only go native if you actually need it

Slide 120

Slide 120 text

is quarkus fast? (again) 6½

Slide 121

Slide 121 text

No content

Slide 122

Slide 122 text

was this an easy demo?

Slide 123

Slide 123 text

was this an easy demo? eric deandrea wrote the initial app and julien ponge wrote the scripts

Slide 124

Slide 124 text

was this an easy demo?

Slide 125

Slide 125 text

was this an easy demo? writing benchmarks is trivial … but writing good benchmarks is hard

Slide 126

Slide 126 text

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

Slide 127

Slide 127 text

don’t do perf testing on a laptop don’t drive load from the machine being measured

Slide 128

Slide 128 text

here’s what we see in our controlled lab https://github.com/edeandrea/quarkus-for-spring-devs-examples/tree/quarkus-for-spring-devs-talk-sb3

Slide 129

Slide 129 text

here’s what we see in our controlled lab https://github.com/edeandrea/quarkus-for-spring-devs-examples/tree/quarkus-for-spring-devs-talk-sb3

Slide 130

Slide 130 text

here’s what we see in our controlled lab https://github.com/edeandrea/quarkus-for-spring-devs-examples/tree/quarkus-for-spring-devs-talk-sb3

Slide 131

Slide 131 text

here’s what we see in our controlled lab https://github.com/edeandrea/quarkus-for-spring-devs-examples/tree/quarkus-for-spring-devs-talk-sb3

Slide 132

Slide 132 text

it’s not really about speed

Slide 133

Slide 133 text

it’s not really about throughput

Slide 134

Slide 134 text

it’s about hardware

Slide 135

Slide 135 text

… and hardware is money

Slide 136

Slide 136 text

No content

Slide 137

Slide 137 text

spring boot quarkus

Slide 138

Slide 138 text

spring boot quarkus 40 586 req/s

Slide 139

Slide 139 text

spring boot quarkus 40 586 req/s 17 209 req/s

Slide 140

Slide 140 text

spring boot quarkus 40 586 req/s 17 209 req/s 1 342 errors

Slide 141

Slide 141 text

spring boot quarkus 40 586 req/s 17 209 req/s 1 342 errors 2 vCPUs 0.5 GiB

Slide 142

Slide 142 text

spring boot quarkus t3.nano $0.0052 40 586 req/s 17 209 req/s 1 342 errors 2 vCPUs 0.5 GiB

Slide 143

Slide 143 text

spring boot quarkus t3.nano $0.0052 40 586 req/s 17 209 req/s 1 342 errors 2 vCPUs 2 GiB 2 vCPUs 0.5 GiB

Slide 144

Slide 144 text

spring boot quarkus t3.nano $0.0052 t3.small $0.0208 40 586 req/s 17 209 req/s 1 342 errors 2 vCPUs 2 GiB 2 vCPUs 0.5 GiB

Slide 145

Slide 145 text

spring boot quarkus t3.nano $0.0052 t3.small $0.0208 40 586 req/s 17 209 req/s 1 342 errors $3.87 a month 2 vCPUs 2 GiB 2 vCPUs 0.5 GiB

Slide 146

Slide 146 text

spring boot quarkus t3.nano $0.0052 t3.small $0.0208 40 586 req/s 17 209 req/s 1 342 errors $15.47 a month $3.87 a month 2 vCPUs 2 GiB 2 vCPUs 0.5 GiB

Slide 147

Slide 147 text

spring boot quarkus t3.nano $0.0052 t3.small $0.0208 40 586 req/s 17 209 req/s 1 342 errors $15.47 a month $3.87 a month x2 2 vCPUs 2 GiB 2 vCPUs 0.5 GiB

Slide 148

Slide 148 text

spring boot quarkus t3.nano $0.0052 t3.small $0.0208 40 586 req/s 17 209 req/s 1 342 errors $15.47 a month $3.87 a month $30.94 a month x2 2 vCPUs 2 GiB 2 vCPUs 0.5 GiB

Slide 149

Slide 149 text

spring boot quarkus t3.nano $0.0052 t3.small $0.0208 40 586 req/s 17 209 req/s 1 342 errors $15.47 a month $3.87 a month $30.94 a month x2 2 vCPUs 2 GiB 2 vCPUs 0.5 GiB

Slide 150

Slide 150 text

spring boot quarkus t3.nano $0.0052 t3.small $0.0208 40 586 req/s 17 209 req/s 1 342 errors $15.47 a month $3.87 a month $30.94 a month x2 2 vCPUs 2 GiB 2 vCPUs 0.5 GiB

Slide 151

Slide 151 text

tell your boss you learned… -quarkus uses 2 - 8x fewer compute resources than spring -quarkus is 2 - 8x cheaper to run than spring

Slide 152

Slide 152 text

it’s also about energy

Slide 153

Slide 153 text

it’s also about energy BORING!

Slide 154

Slide 154 text

No content

Slide 155

Slide 155 text

No content

Slide 156

Slide 156 text

No content

Slide 157

Slide 157 text

No content

Slide 158

Slide 158 text

9000 potatoes

Slide 159

Slide 159 text

No content

Slide 160

Slide 160 text

0.0007 W

Slide 161

Slide 161 text

t3.nano t3.small 2x t3.small Watts per hour 12.5 14 28

Slide 162

Slide 162 text

t3.nano t3.small 2x t3.small Watts per hour 12.5 14 28 Lemons per hour 17,857 20,000 40,000

Slide 163

Slide 163 text

spring boot 40,000 lemons/hour quarkus 17,857 lemons/hour

Slide 164

Slide 164 text

No content

Slide 165

Slide 165 text

jbang wrk2@hyperfoil -t2 -c100 -d30s -R 200 --latency http:// localhost:8080/fruits jbang wrk@hyperfoil -t2 -c100 -d20s --timeout 1s http:// localhost:8080/fruits sudo powermetrics --samplers cpu_power,tasks --show-process- samp-norm --show-process-gpu --show-usage-summary -i 0 -o output.txt

Slide 166

Slide 166 text

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

Slide 167

Slide 167 text

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

Slide 168

Slide 168 text

tell your boss you learned… -use wrk2 or hyperfoil for load testing -use powermetrics to measure energy by pid on mac

Slide 169

Slide 169 text

was this an easy demo?

Slide 170

Slide 170 text

was this an easy demo?

Slide 171

Slide 171 text

was this an easy demo? -fitting 77 ,857 lemons on my desk is hard

Slide 172

Slide 172 text

was this an easy demo? -fitting 77 ,857 lemons on my desk is hard -our industry is still learning how to do energy measurement

Slide 173

Slide 173 text

what have we done?

Slide 174

Slide 174 text

what have we done? 1. translated output with a filter

Slide 175

Slide 175 text

what have we done? 1. translated output with a filter 2. transformed code with an extension

Slide 176

Slide 176 text

what have we done? 1. translated output with a filter 2. transformed code with an extension 3. compiled rock ballads to bytecode

Slide 177

Slide 177 text

what have we done? 1. translated output with a filter 2. transformed code with an extension 3. compiled rock ballads to bytecode 4. amplified hallucinations

Slide 178

Slide 178 text

what have we done? 1. translated output with a filter 2. transformed code with an extension 3. compiled rock ballads to bytecode 4. amplified hallucinations 5. used minecraft as an observability client

Slide 179

Slide 179 text

what have we done? 1. translated output with a filter 2. transformed code with an extension 3. compiled rock ballads to bytecode 4. amplified hallucinations 5. used minecraft as an observability client 6. made memes with a cli

Slide 180

Slide 180 text

what have we done? 1. translated output with a filter 2. transformed code with an extension 3. compiled rock ballads to bytecode 4. amplified hallucinations 5. used minecraft as an observability client 6. made memes with a cli 7 . confirmed quarkus does a lot with very few resources 6½.

Slide 181

Slide 181 text

https://hollycummins.com/quarkus-ridiculous-things-jchampions/

Slide 182

Slide 182 text

bonus: hallucinations

Slide 183

Slide 183 text

the value of a second opinion? chatgpt.com

Slide 184

Slide 184 text

the value of a second opinion? chatgpt.com the statement we’re validating

Slide 185

Slide 185 text

the value of a second opinion? chatgpt.com the statement we’re validating “oh yes, definitely true”

Slide 186

Slide 186 text

the value of a second opinion? chatgpt.com the statement we’re validating “oh yes, definitely true” “what answer would you give?”

Slide 187

Slide 187 text

the value of a second opinion? chatgpt.com the statement we’re validating “oh yes, definitely true” “what answer would you give?” but if you knew, why did you … ?

Slide 188

Slide 188 text

gemma3 - 1 b parameters how many bs in blueberry?

Slide 189

Slide 189 text

"Okay, let’s tackle this! As of today, October 1st, 2025, there are approximately **12** “BS”s in the word “blueberry.” It’s a surprisingly common phenomenon! 😊 Do you want to explore why this happens?" gemma3 - 1 b parameters how many bs in blueberry?

Slide 190

Slide 190 text

deepseekr1- 1.5 b parameters when did brexit happen?

Slide 191

Slide 191 text

Hmm, the user is asking about something related to 20-30-0-3 but brexit, probably typo or20-10- something, correction. User meant brexit or2-1- meaning Brexit. Let me confirm that. User is20- user2 is inquiring about Brexit. UK leaving EU thing. But what time period20 2020-3 might be typo for20- 20 twenty021203. 20-20 or something. Perhaps20-202201. UK left. UK left EU. UK left20 on01 Jan201202022-021201021 I think22. Wait no1. Let me212012 January22202021. So January. Yes2 user might be21 probably20 asking about that. User22. Better2 just confirm. Brexit201 20 answer. Say20 simply22 date2. Not much else0 else0. Keep2 simple1 short1 friendly2. Okay2 polite2 user. It seems you're asking about the date the Brexit, right? The UK left EU on 29th January21st of February2020221 deepseekr1- 1.5 b parameters when did brexit happen?