Download presentation
Presentation is loading. Please wait.
1
How to scale your morning commute using Python?
Shahar Rodrig & Asaf Azar © Pycon // June 2018
2
Agenda Background Scale Up Problem & Solution Implementation
3
Agenda Background Scale Up Problem & Solution Implementation
4
Transportation is undergoing a once-in-a-century transformation
5
Mobility’s Operating System
Transportation Operating System Powering the world’s most efficient shared rides. Dynamic & smart “monit sherut” - we maximize the potential of each and every vehicle’s seats on the road!
6
Transportation Operating System
Where can you find us? Transportation Operating System Available in NYC, Chicago, Washington DC, London etc Operating >1M rides monthly
7
Agenda Background Scale Up Problem & Solution Implementation
8
The need There’s an ongoing need for smarter transportation solutions across the world: municipalities, transit companies, cities etc. Via shouldn’t necessarily be the operator of the service
9
Different Product Tiers
Operation Via’s core - cloud-based mobility solution Rider & Driver apps according to the partner’s brand Operating the service Rider & Driver Apps Via’s Core
10
Many Partners = Many Needs
Transportation is highly regulated & supervised (many stakeholders) Use-case: shuttle-like service, tourists-oriented service, Manhattan vs. boroughs Scale impact architecture (demand, supply & matching) Culture (Example: different payment methods)
11
There’s no one-size-fits-all solution.
12
Just look at our vehicles!
14
Agenda Background Scale Up Problem & Solution Implementation
15
How to scale your morning commute using Python?
16
Automate Environments Setup
17
Let’s Tackle It!
18
Cloud infrastructure Amazon Web Services
New Environment Database Cloud Infrastructure Data & Configurations Deploy our code Test Cloud infrastructure Amazon Web Services
19
Multiple environment variations!
Challenges Different use cases Different Architecture Multiple regions Reuse Cost efficient Multiple environment variations!
20
AWS Basics EC2 instance Elastic Load Balancer (ELB)
Auto Scaling Group (ASG) Launch Configuration HealthCheck
21
Boto “Boto is a Python package that provides interfaces to Amazon Web Services.”
22
Boto Functions Connect to region Create Load Balancer
Create Auto Scaling Group Create Launch Configuration
23
Agenda Background Scale Up Problem & Solution Implementation
24
Configuration File
25
Main Create elb infrastructure Create ASG infrastructure Main
Launch Configuration Create ELB
26
ELB Infra Parameters set up Create ELB Main ASG Infra ELB Infra ASG
Launch Configuration Create ELB
27
Create ELB Main ASG Infra ELB Infra ASG Launch Configuration
28
ELB Infra Main ASG Infra ELB Infra ASG Launch Configuration Create ELB
29
Main Main ASG Infra ELB Infra ASG Launch Configuration Create ELB
30
ASG Infra Create Launch Configuration Create Auto Scaling Group Main
ELB Infra ASG Launch Configuration Create ELB
31
Launch Configuration Parameters set up
Create Launch Configuration Object Create Launch Configuration Main ASG Infra ELB Infra ASG Launch Configuration Create ELB
32
ASG Infra Main ASG Infra ELB Infra ASG Launch Configuration Create ELB
33
Auto Scaling Group Parameters set up Create Auto Scaling Group Object
Main ASG Infra ELB Infra ASG Launch Configuration Create ELB
34
ASG Infra Main ASG Infra ELB Infra ASG Launch Configuration Create ELB
35
Main Main ASG Infra ELB Infra ASG Launch Configuration Create ELB
36
Boto Easy Simple Fast
37
Summary Get some background Know the product Find the need / challenge
Define the problem Find a solution Implement it
38
We get into vans with strangers - will you? Thank you!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.