ChapterÂ 2.Â Introducing Restbucks: How to GET a Coffee, Web Style
WHILE DEVELOPING THIS BOOK, we wondered how we would describe web-based distributed systems in an accessible scenario. We werenât really keen on the idea of yet another e-commerce or trading application. We thought it would have been too boring. We certainly wouldnât want to read a book like that, so why write one?
Instead, we chose a modest scenario that doesnât try to steal the focus from the technical discussion or try to become the star of the book. We didnât want to engage in long explanations about complex problem domains. So, in that spirit, this is the only chapter where weâll discuss our domain in depth. The other chapters will deal with technical concepts.
The inspiration for our problem domain came from Gregor Hohpeâs brilliant observation on how a Starbucks coffee shop works. In his popular blog entry, Gregor talks about synchronous and asynchronous messaging, transactions, and scaling the message-processing pipeline in an everyday situation.
We liked the approach very much, and as believers that âimitation is the sincerest form of flattery,â we adopted Gregorâs scenario at the heart of this book. We freely admit that our need for good coffee while writing also encouraged us to focus on our own little coffee megastore: Restbucks.
Restbucks: A Little Coffee Shop with Global Ambitions
Throughout this book, weâll frame our problems and web-based solutions in terms of a coffee shop called ...