Gatling for JMeter dummies - Entwicklertag · 1 Gatling for JMeter dummies Rainer Steinegger...

Preview:

Citation preview

1

Gatling for JMeter dummies

Rainer Steinegger

Application Engineer, Unic GmbH

2

Rainer Steinegger

• Java Backend Engineer

• Java User Group KA Organizer

• Mentor at Devoxx4Kids

• Married and 3 kids

Click to edit Master title style

3

featuring some friends

4

• JMeter • Gatling to the rescue!!111 • Gatling Basics and Code

Agenda

Click to edit Master title style

5

Why load-/stresstests?!

Click to edit Master title style

6

JMeter

Click to edit Master title style

7

Performance

Click to edit Master title style

8

one user per thread

Click to edit Master title style

9

might take many threads

Click to edit Master title style

10

… and doesn’t scale well

Click to edit Master title style

11

Blocking I/O

Click to edit Master title style

12

Thread.sleep()

Click to edit Master title style

13

Usability

Click to edit Master title style

14

peer reviews

Click to edit Master title style

15

XML!!!

Click to edit Master title style

16

refactorings…

Click to edit Master title style

17

plugin dependencies and versions

Click to edit Master title style

18

Gatling to the rescue!!111

Click to edit Master title style

19

Performance

Click to edit Master title style

20

akka and actuators

Click to edit Master title style

21

Thread.sleep()

netty for non-blocking I/O

Click to edit Master title style

22

versioning and peer reviews

Click to edit Master title style

23

Scala for DSL

Click to edit Master title style

24

use the tools you are used to!

Click to edit Master title style

25

Gatling Basics

26

Simulations:

• Standard load

• Peak exceeded

• …

Simulations and Scenarios

Scenarios:

• Registration

• Login

• Search

• ...

Click to edit Master title style

27

finally some code

28

• Gatling Recorder

• Maven Gatling Plugin and Reports

• User and sessions

• Feeder and data sources (in-memory, CSV, JSON, JDBC, …)

• Configuration

• Assertions (requests per second, successful requests, …)

• HTTP/… Checks

• Protocols (HTTP, Server Sent Events, WebSockets, JMS)

Recap

Click to edit Master title style

29

that’s all folks!

https://github.com/rainer-steinegger - rainer.steinegger@unic.com

Recommended