Leanpub Header

Skip to main content

12 Factor Applications with Docker and Go

A book filled with examples on how to use Docker and Go to create the ultimate 12 Factor applications

Did you hit a wall when scaling your service? Want to make sure that your application will scale from the start? Start with 12 Factor Application design principles, that enable you to scale your app to thousands of instances with a flip of a switch. Set up your own Docker swarm and put your scale-ability to a test.

Minimum price

$29.00

$49.00

You pay

$49.00

Author earns

$39.20

Packages

Details
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
288
Readers
146
Pages
33,256Words
About

About

About the Book

Using Docker to solve scaling issues, ideally before they occur. Scale your Go service from the start!

Packages

Pick Your Package

All packages include the ebook in the following formats: PDF, EPUB, and Web

Engineer

Minimum price

Suggested price$49.00

$29.00

    Business

    Minimum price

    Suggested price$399.00

    $299.00

      Author

      About the Author

      Tit Petric

      I'm a seasoned veteran of software engineering. Interested in performance optimization and problem solving. High traffic, high availability, virtualization, docker - these are the categories in which I live.

      Contents

      Table of Contents

      Introduction

      1. About me
      2. Who is this book for?
      3. How should I study it?

      Requirements

      1. Linux and Docker
      2. Additional requirements

      I. Codebase - One codebase tracked in revision control, many deploys

      1. Gogs
      2. Multiple deploys
      3. Structuring your code
      4. Improving deployments

      II. Dependencies - Explicitly declare and isolate dependencies

      1. Vendoring
      2. Caveats about vendoring
      3. System dependencies

      III. Config - Store config in the environment

      1. Flags
      2. godotenv
      3. Viper

      IV. Backing services - Treat backing services as attached resources

      1. Data resources
      2. Example backing services

      V. Build, release, run - Strictly separate build and run stages

      1. Building Go applications
      2. Building Docker images
      3. Continuous integration with Codeship

      VI. Processes - Execute the app as one or more stateless processes

      1. Data caching
      2. Share-nothing
      3. Backing service: Running a highly available Redis instance
      4. Realistic example of a stateless application

      VII. Port binding - Export services via port binding

      1. The none network
      2. The bridge network
      3. Custom bridge network
      4. Multi-host network
      5. Host networking
      6. Exposing your service ports
      7. Debugging docker network connectivity
      8. Using your own DNS
      9. Sending e-mails from docker

      VIII. Concurrency - Scale out via the process model

      1. Basic process management
      2. Advanced process management
      3. Docker swarm
      4. Scaling our service with Docker Swarm
      5. Rolling updates for our service
      6. Scaling to a 1000 containers!

      IX. Disposability - Maximize robustness with fast startup and graceful shutdown

      1. Disposing of containers
      2. Docker Chaos Monkey
      3. Health checks

      X. Dev/prod parity - Keep development, staging, and production as similar as possible

      1. It worked on my machine
      2. Upgrades and testing
      3. Many moving parts

      XI. Logs - Treat logs as event streams

      1. A note on backing services
      2. Logging Docker to Papertrail
      3. Logging as a backing service

      XII. Admin processes - Run admin/management tasks as one-off processes

      1. Running backups
      2. Console access to your containers
      3. Orchestrating your management tasks

      Get the free sample chapters

      Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

      The Leanpub 60 Day 100% Happiness Guarantee

      Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

      Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

      You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

      So, there's no reason not to click the Add to Cart button, is there?

      See full terms...

      Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

      We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

      (Yes, some authors have already earned much more than that on Leanpub.)

      In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

      Learn more about writing on Leanpub

      Free Updates. DRM Free.

      If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

      Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

      Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

      Learn more about Leanpub's ebook formats and where to read them

      Write and Publish on Leanpub

      You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

      Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

      Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

      Learn more about writing on Leanpub