Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Online events: Check-in performance enhancement #898

Merged
merged 5 commits into from
May 10, 2020

Conversation

cbellone
Copy link
Member

This code increases throughput and adds an hook for customizing the target URL

Here are the results of a load tests performed with siege with the following parameters:

siege -c 250 -b -f <file-with-urls> --no-follow

  • 250 concurrent users
  • no delay between calls

on a free-of-charge event, with 5000 attendees.

The server has 1 vCPU, 1GB of Ram, running Nginx, Alf.io and PostgreSQL

before:

Transactions:		        3789 hits
Availability:		       96.91 %
Elapsed time:		       98.88 secs
Data transferred:	        0.03 MB
Response time:		        5.58 secs
Transaction rate:	       38.32 trans/sec
Throughput:		        0.00 MB/sec
Concurrency:		      213.73
Successful transactions:        3789
Failed transactions:	         121
Longest transaction:	       39.67
Shortest transaction:	        0.94

after:

Transactions:		        7506 hits
Availability:		      100.00 %
Elapsed time:		       70.86 secs
Data transferred:	        0.00 MB
Response time:		        2.33 secs
Transaction rate:	      105.93 trans/sec
Throughput:		        0.00 MB/sec
Concurrency:		      246.64
Successful transactions:        7506
Failed transactions:	           0
Longest transaction:	       25.98
Shortest transaction:	        0.27

@cbellone cbellone requested a review from syjer May 10, 2020 14:47
@cbellone cbellone changed the title Checkin performance enhancement Online events: Check-in performance enhancement May 10, 2020
@syjer syjer merged commit f9e8dc9 into alfio-event:master May 10, 2020
cbellone added a commit that referenced this pull request May 20, 2020
* first working prototype. To be tested :)

* fix license

* check if ticket category currently allows check-in

* add extension hook to customize the target service URL

* remove test endpoint

(cherry picked from commit f9e8dc9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants