Marcel de Vries CTO Xpirit @marcelv @marcelv Lets sell music - - PowerPoint PPT Presentation

marcel de vries
SMART_READER_LITE
LIVE PREVIEW

Marcel de Vries CTO Xpirit @marcelv @marcelv Lets sell music - - PowerPoint PPT Presentation

#TESTWORKSCONF #XPIRT Marcel de Vries CTO Xpirit @marcelv @marcelv Lets sell music online! @marcelv Assemble a team We do Scrum We read THE book @marcelv @marcelv Marketing is doing great! @marcelv Website looks great . @marcelv


slide-1
SLIDE 1

@marcelv

Marcel de Vries

CTO Xpirit #TESTWORKSCONF #XPIRT

@marcelv

slide-2
SLIDE 2

@marcelv

Lets sell music online!

slide-3
SLIDE 3

@marcelv

Assemble a team We read THE book We do Scrum

slide-4
SLIDE 4

@marcelv

slide-5
SLIDE 5

@marcelv

Marketing is doing great!

slide-6
SLIDE 6

@marcelv

Website looks great ….

slide-7
SLIDE 7

@marcelv

Launch date ….

slide-8
SLIDE 8

@marcelv

What just happened?

slide-9
SLIDE 9

@marcelv

slide-10
SLIDE 10

@marcelv

We did the lean startup thing…. We used agile methodology to produce the software…. We wrote tons of tests, everything is unit tested, we have 98% coverage!!! We use Microsoft Azure…. We have auto scaling turned on…..

But…….?!?

slide-11
SLIDE 11

@marcelv

Welcome to the pitfall called success!

Applications always behave differently when running under high load and stress conditions!

slide-12
SLIDE 12

@marcelv

I never make the same mistake twice. I make it five or six times, just to be sure.”

– Anonymous

slide-13
SLIDE 13

@marcelv

Load testing:

How will the application behave in front of the expected users load?

Performance testing:

How fast will the application code perform?

Stress testing:

What is point of users- load that will break your application?

Capacity planning:

Will the application be able to scale up to the expected future capacity?

slide-14
SLIDE 14

@marcelv

T

  • ols that can help in this space

Variation of Open Source and Commecial software Some common tools used:

slide-15
SLIDE 15

@marcelv

We have done an amazing job of hiding this diamond (a 10K+ load testing tool) inside the box for years

  • - Charles Sterling .Net Rocks episode 1202

Visual Studio Ultimate(2010,12,13) Visual Studio Enterprise 2015 Web Performance T est Any unit test

Performance testing in VS

slide-16
SLIDE 16

@marcelv

Demo

slide-17
SLIDE 17

@marcelv

Typical Enterprise setup

Prod.myenterprise.com

Prod servers

Workplace clients

Prod network

AD server & DNS Server

Dev.myenterprise.com

TFS Server

Dev Clients

DEV network

AD server & DNS Server

TST.myenterprise.com TST Clients

TST network

AD server & DNS Server

Dev Servers TST Servers

slide-18
SLIDE 18

@marcelv

Load test configuration

TST.myenterprise.com

TST network

AD server & DNS Server

Load test rig System Under Test

Load generator Load generator + Controller

Http(s)://myurl.tst.myenterprise.com

Load test database

TST Workstation

slide-19
SLIDE 19

@marcelv

Install your software/agents Physically setup computers Appropriate/buy/ rent computers

What is needed to make this work?

Replicate this to all the computers

slide-20
SLIDE 20

@marcelv

Get infrastructure in cloud when you need it. No need to setup your own infrastructure and maintain it. Use the same load test project which you use for on premises today. Scale out easily in case of doing stress testing.

Benefits of cloud load testing

slide-21
SLIDE 21

@marcelv

Cloud Load test configuration

TST.myenterprise.com TST Workstation

TST network

AD server & DNS Server

Load test rig System Under Test

Load generator Load generator + Controller

Http(s)://myurl.tst.myenterprise.com

slide-22
SLIDE 22

@marcelv @marcelv

New capabilities in VS 2015 & Update 5 13 regions up to 100 Cores for 72 hrs!

slide-23
SLIDE 23

@marcelv

Demo

slide-24
SLIDE 24

@marcelv

But I don’t want Visual Studio!

slide-25
SLIDE 25

@marcelv

No worries, don’t need it

slide-26
SLIDE 26

@marcelv

Demo

slide-27
SLIDE 27

@marcelv

“It is not hard to break something with a load test but it is extremely hard to learn something when you do”

  • - Richard Campbell, .Net Rocks episode 1202

Need to create representative scenarios Need to provide a real life scenario mix Start with a baseline Always compare to the baseline and check improvements Make it part of your daily routine

Load testing Approach

slide-28
SLIDE 28

@marcelv

Example Node.JS & Mongo optimization done in April

slide-29
SLIDE 29

@marcelv

Load testing part of build & Release

VSTS standard build engine VSTS Release pipelines

slide-30
SLIDE 30

@marcelv

Demo

slide-31
SLIDE 31

@marcelv

But what does this cost?

  • First we need to define a VUM..
  • E.g run a test for 1 hour to simulate 10,000 users =>
slide-32
SLIDE 32

@marcelv

Conclusion

Cloud based load testing enables easy road to load testing for your external facing sites / API’s Visual Studio supports simple to set up load tests Visual Studio T eam Services(VSTS) provides cloud based load tests supports various formats including JMeter Make load testing part of you automated deployment strategy!

slide-33
SLIDE 33

@marcelv

@marcelv http://fluentbytes.com mdevries@xpirit.com

slide-34
SLIDE 34

@marcelv

@marcelv http://fluentbytes.com mdevries@xpirit.com

xpir.it/XpiritMagazine