Skip to Main Content
Scalable Cloud Ops with Fugue
book

Scalable Cloud Ops with Fugue

by Josha Stella
July 2017
Beginner to intermediate content levelBeginner to intermediate
312 pages
7h 21m
English
Pragmatic Bookshelf
Content preview from Scalable Cloud Ops with Fugue

Reducing Redundancy in Refuge ASGs and Beyond

Let’s apply more of what you’ve learned to our Refuge composition. Looking at the code, we can see that there are many similarities between the refuge-web-app, refuge-api, and refuge-notifiication-worker services. Namely, each is composed of the following resources:

  • AutoScalingGroup

  • LaunchConfiguration

  • SecurityGroup

  • InstanceProfile (and associated role and policy)

A few differences aside, all of these resources are configured in pretty much the same way. Let’s pull that common structure out to a function, both to reduce duplication and to allow us to focus on the interesting parts of our services, rather than the boilerplate they have in common. We’ll use an approach similar to the loadbalancer ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick

Publisher Resources

ISBN: 9781680502671Errata Page