SlideShare a Scribd company logo
High Availability (HA)
Coffee
Gil Zellner @Heathenaspargus
High Availability (HA) Coffee
High Availability (HA)
is Super Important to Wix.
Gil Zellner @Heathenaspargus
High Availability (HA) Coffee
About Me
High Availability (HA) Coffee
Now:
Then:
AppsFlyer | Gett | Technion |Trackwise | Arkelis | Oracle | Cloudify
@Heathenaspargus
High Availability (HA) Coffee
Wix Engineering Locations
Ukraine Israel Lithuania
Kiev Tel-Aviv Vilnius
Dnipro Be’er Sheva
Haifa
@Heathenaspargus
High Availability (HA) Coffee
Working From
Home
High Availability (HA) Coffee
@Heathenaspargus
High Availability (HA) Coffee
@Heathenaspargus
Be Own
Facilities
Manager
No Order
in lunch
High Availability (HA) Coffee
Provide
own lunch
@Heathenaspargus
Be Your Own IT
High Availability (HA) Coffee
@Heathenaspargus
High Availability (HA) Coffee
Critical Infrastructure
@Heathenaspargus
Pro’-gram-mer
An organism that converts
caffeine into code.
High Availability (HA) Coffee
@Heathenaspargus
High Availability (HA) Coffee
@Heathenaspargus
Critical Infrastructure
Current Coffee Architecture
High Availability (HA) Coffee
@Heathenaspargus
Backend
Backend
Backend
Frontend Client
Current Coffee Architecture
High Availability (HA) Coffee
@Heathenaspargus
Backend
Backend
Backend
Frontend Client
Cache
Cache
Cache
Current Coffee Architecture
High Availability (HA) Coffee
@Heathenaspargus
Current Coffee Architecture
High Availability (HA) Coffee
Backend
Backend
Backend
Frontend Client
Cache
Cache
Cache
Can’t Handle the load
@Heathenaspargus
High maintenance,
very expensive
Illegal in Israel,
very expensive
High Availability (HA) Coffee
@Heathenaspargus
Stronger Cache
Re-architect
our Coffee
High Availability (HA) Coffee
@Heathenaspargus
Define
our SLA
High Availability (HA) Coffee
@Heathenaspargus
Backend
Backend
Backend
Frontend Client
Cache
Cache
Cache
Can’t Handle the load
High Availability (HA) Coffee
@Heathenaspargus
Backend
Backend
Backend
Frontend Client
Cache
Cache
Cache
Can’t Handle the load
High Availability (HA) Coffee
@Heathenaspargus
High Availability (HA) Coffee
Backend+
Cache
Backend
Backend
Frontend Client
Cache
Cache @Heathenaspargus
./coffee.go:15:42: cannot use e (type *energy.Gas) as type coffeemachine.Electricity
in argument to coffeemachine.NewDelonghiMagnificaS:
*energy.Gas does not implement coffeemachine.Electricity (missing GetElectricity
method)
High Availability (HA) Coffee
@Heathenaspargus
Compile error
Replace frontend
High Availability (HA) Coffee
Backend+
Cache
Backend
Backend
Frontend Client
Cache
Cache @Heathenaspargus
./coffee.go:15:32: cannot use e (type *energy.Gas) as type coffeemachine.Heat in
argument to coffeemachine.NewBialetti:
*energy.Gas does not implement coffeemachine.Heat (missing GetHeat method)
High Availability (HA) Coffee
@Heathenaspargus
Current Coffee Architecture
High Availability (HA) Coffee
Backend +
Cache
Backend
Backend
Frontend Client
Cache
Cache
Translation
layer
@Heathenaspargus
type Stove struct {
g gas
}
type gas interface {
GetGas()
}
func (s *Stove) GetHeat() {
fmt.Printf("Heating up...n")
time.Sleep(1 * time.Second)
}
func NewStove(g gas) *Stove {
return &Stove{g: g}
}
High Availability (HA) Coffee
@Heathenaspargus
Load Balancer
High Availability (HA) Coffee
CLB =
Coffee
Load
Balancer
Active
Passive
Client
@Heathenaspargus
High Availability (HA) Coffee
The Code
@Heathenaspargus
Takeaways
— If you don’t plan for HA, you will have to refactor later
High Availability (HA) Coffee
@Heathenaspargus
Takeaways
— If you don’t plan for HA, you will have to refactor later
— Refactoring can add functionality
High Availability (HA) Coffee
@Heathenaspargus
Takeaways
— If you don’t plan for HA, you will have to refactor later
— Refactoring can add functionality
— Invest in good coffee
High Availability (HA) Coffee
@Heathenaspargus
Q&A
Any questions?
High Availability (HA) Coffee
Thank You!
High Availability (HA) Coffee
Links:
https://github.com/gilzellner/HA-Coffee
@Heathenaspargus Gil.Zellner@gmail.com

More Related Content

More from Gil Zellner

Lessons in video games that have prepared me for a life in engineering
Lessons in video games that have prepared me for a life in engineeringLessons in video games that have prepared me for a life in engineering
Lessons in video games that have prepared me for a life in engineering
Gil Zellner
 
5m the unsung glory of internal tools (1)
5m   the unsung glory of internal tools (1)5m   the unsung glory of internal tools (1)
5m the unsung glory of internal tools (1)
Gil Zellner
 
Full talk from ops to dev and back again
Full talk   from ops to dev and back againFull talk   from ops to dev and back again
Full talk from ops to dev and back again
Gil Zellner
 
How to get your engineers to care about the AWS Bill
How to get your engineers to care about the AWS BillHow to get your engineers to care about the AWS Bill
How to get your engineers to care about the AWS Bill
Gil Zellner
 
Rinse and repeat
Rinse and repeatRinse and repeat
Rinse and repeat
Gil Zellner
 
A newborn as a production system
A newborn as a production systemA newborn as a production system
A newborn as a production system
Gil Zellner
 
Ignite (10m) how to not burn out your monitoring team
Ignite (10m)   how to not burn out your monitoring teamIgnite (10m)   how to not burn out your monitoring team
Ignite (10m) how to not burn out your monitoring team
Gil Zellner
 
How to do monitoring that won't make your engineers quit
How to do monitoring that won't make your engineers quitHow to do monitoring that won't make your engineers quit
How to do monitoring that won't make your engineers quit
Gil Zellner
 

More from Gil Zellner (8)

Lessons in video games that have prepared me for a life in engineering
Lessons in video games that have prepared me for a life in engineeringLessons in video games that have prepared me for a life in engineering
Lessons in video games that have prepared me for a life in engineering
 
5m the unsung glory of internal tools (1)
5m   the unsung glory of internal tools (1)5m   the unsung glory of internal tools (1)
5m the unsung glory of internal tools (1)
 
Full talk from ops to dev and back again
Full talk   from ops to dev and back againFull talk   from ops to dev and back again
Full talk from ops to dev and back again
 
How to get your engineers to care about the AWS Bill
How to get your engineers to care about the AWS BillHow to get your engineers to care about the AWS Bill
How to get your engineers to care about the AWS Bill
 
Rinse and repeat
Rinse and repeatRinse and repeat
Rinse and repeat
 
A newborn as a production system
A newborn as a production systemA newborn as a production system
A newborn as a production system
 
Ignite (10m) how to not burn out your monitoring team
Ignite (10m)   how to not burn out your monitoring teamIgnite (10m)   how to not burn out your monitoring team
Ignite (10m) how to not burn out your monitoring team
 
How to do monitoring that won't make your engineers quit
How to do monitoring that won't make your engineers quitHow to do monitoring that won't make your engineers quit
How to do monitoring that won't make your engineers quit
 

Recently uploaded

Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
PrashantGoswami42
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 

Recently uploaded (20)

Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 

HA coffee