Reactive Microsystems The Evolution of Microservices at Scale First Edition Jonas Bonér pdf download
Reactive Microsystems The Evolution of Microservices at Scale First Edition Jonas Bonér pdf download
https://ebookmeta.com/product/reactive-microsystems-the-
evolution-of-microservices-at-scale-first-edition-jonas-boner/
https://ebookmeta.com/product/building-reactive-microservices-in-
java-1st-edition-clement-escoffier/
https://ebookmeta.com/product/data-management-at-scale-piethein-
strengholt/
https://ebookmeta.com/product/mlops-engineering-at-scale-1st-
edition-carl-osipov/
https://ebookmeta.com/product/economic-diversification-in-
nigeria-the-politics-of-building-a-post-oil-economy-1st-edition-
zainab-usman/
A Connected Curriculum for Higher Education 27th
Edition Dilly Fung
https://ebookmeta.com/product/a-connected-curriculum-for-higher-
education-27th-edition-dilly-fung/
https://ebookmeta.com/product/ash-glazes-techniques-and-glazing-
from-natural-sources-3rd-edition-phil-rogers/
https://ebookmeta.com/product/easy-bread-machine-recipes-prepare-
all-types-of-delicious-breads-with-easy-bread-machine-
recipes-2nd-edition-booksumo-press/
https://ebookmeta.com/product/game-changer-the-technoscientific-
revolution-in-sports-1st-edition-rayvon-fouche/
https://ebookmeta.com/product/where-there-s-a-will-lost-
boys-1-1st-edition-jessie-walker/
Co
m
pl
im
en
ts
Reactive
of
Microsystems
The Evolution of Microservices at Scale
Jonas Bonér
Reactive Microsystems
The Evolution of Microservices at Scale
Jonas Bonér
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. Reactive Microsys‐
tems, the cover image, and related trade dress are trademarks of O’Reilly Media, Inc.
While the publisher and the author have used good faith efforts to ensure that the
information and instructions contained in this work are accurate, the publisher and
the author disclaim all responsibility for errors or omissions, including without limi‐
tation responsibility for damages resulting from the use of or reliance on this work.
Use of the information and instructions contained in this work is at your own risk. If
any code samples or other technology this work contains or describes is subject to
open source licenses or the intellectual property rights of others, it is your responsi‐
bility to ensure that your use thereof complies with such licenses and/or rights.
978-1-491-99433-7
[LSI]
Table of Contents
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
iii
6. Toward Scalable Persistence. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Moving Beyond CRUD 49
Event Logging—The Scalable Seamstress 50
Transactions—The Anti-Availability Protocol 59
8. Next Steps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Further Reading 71
Start Hacking 72
iv | Table of Contents
Introduction
v
We Can’t Make the Horse Faster
If I had asked people what they wanted, they would have said faster
horses.
—Henry Ford1
1 It’s been debated whether Henry Ford actually said this. He probably didn’t. Regardless,
it’s a great quote.
vi | Introduction
They have had many names over the years (DCOM, CORBA, EJBs,
WebServices, etc.). Today, we call them microservices. We, as an
industry, have gone full circle again. Fortunately, it is more of an
upward spiral as we are getting a little bit better at it every time
around.
Introduction | vii
take full advantage of the cloud.2 That said, it also can introduce
unnecessary complexity and simply slow you down. In other words,
do not apply microservices blindly. Think for yourself.
2 If approached from the perspective of distributed systems, which is the topic of this
report.
viii | Introduction
CHAPTER 1
Essential Traits of an Individual
Microservice
Isolation is the most important trait and the foundation for many of
the high-level benefits in microservices.
Isolation also has the biggest impact on your design and architec‐
ture. It will, and should, slice up the entire architecture, and there‐
fore it needs to be considered from day one.
It will even affect the way you break up and organize the teams and
their responsibilities, as Melvyn Conway discovered in 1967 (later
named Conway’s Law):
Any organization that designs a system (defined broadly) will pro‐
duce a design whose structure is a copy of the organization’s com‐
munication structure.
Isolation between services makes it natural to adopt Continuous
Delivery (CD). This makes it possible for you to safely deploy appli‐
1
cations and roll out and revert changes incrementally, service by ser‐
vice.
Isolation makes it easier to scale each service, as well as allowing
them to be monitored, debugged, and tested independently—some‐
thing that is very difficult if the services are all tangled up in the big
bulky mess of a monolith.
Act Autonomously
In a network of autonomous systems, an agent is only concerned with
assertions about its own policy; no external agent can tell it what to do,
without its consent. This is the crucial difference between autonomy and
centralized management.
—Mark Burgess, Promise Theory
Single Responsibility
This is the Unix philosophy: Write programs that do one thing and do it
well. Write programs to work together.
—Doug McIlroy
1 The Unix philosophy is described really well in the classic book The Art of Unix Pro‐
gramming by Eric Steven Raymond (Pearson Education).
2 For an in-depth discussion on the Single Responsibility Principle, see Robert C. Mar‐
tin’s website The Principles of Object Oriented Design.
SHEPPARD RANSOME,
LONDON AGENT,
3 1, E S S E X S T R E E T, S T R A N D, L O N D O N, W. C.
OR OF
C. GARROOD,
AGRICULTURAL SUPERINTENDENT, CRYSTAL PALACE, SYDENHAM.
Stand 43.—Corn and Seed Crushing Mills, Chaff Cutters, &c.
E., First Prizes for the above Mills at the Annual Exhibitions of 1853, 1854, and 1855
R., and F. TURNER have received the Royal Agricultural Society’s
(the last occasion when a prize was offered). Also the 1st Prize and Gold Medal at
the Paris Imperial Universal Exhibition of Agriculture, 1856; Large Silver Medal at the
Grand Austrian Imperial Exhibition, Vienna, 1857. Illustrated Catalogues sent free on
application to
ST. PETER’S IRON WORKS, IPSWICH.
PORTRAIT GALLERY
OF THE
CRYSTAL PALACE.
BY
SAMUEL PHILLIPS.
1854.
PREFACE.
ANTIQUE PORTRAITS.
GREEK COURT.
SOUTH SIDE COURT—
PAGE
ΗΡΟΔΟΤΟΣ.
THE PORTRAIT GALLERY.
ANTIQUE PORTRAITS.