Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Layered Design for Ruby on Rails Applications

You're reading from  Layered Design for Ruby on Rails Applications

Product type Book
Published in Aug 2023
Publisher Packt
ISBN-13 9781801813785
Pages 298 pages
Edition 1st Edition
Languages
Author (1):
Vladimir Dementyev Vladimir Dementyev
Profile icon Vladimir Dementyev

Table of Contents (20) Chapters

Preface 1. Part 1: Exploring Rails and Its Abstractions
2. Chapter 1: Rails as a Web Application Framework 3. Chapter 2: Active Models and Records 4. Chapter 3: More Adapters, Less Implementations 5. Chapter 4: Rails Anti-Patterns? 6. Chapter 5: When Rails Abstractions Are Not Enough 7. Part 2: Extracting Layers from Models
8. Chapter 6: Data Layer Abstractions 9. Chapter 7: Handling User Input outside of Models 10. Chapter 8: Pulling Out the Representation Layer 11. Part 3: Essential Layers for Rails Applications
12. Chapter 9: Authorization Models and Layers 13. Chapter 10: Crafting the Notifications Layer 14. Chapter 11: Better Abstractions for HTML Views 15. Chapter 12: Configuration as a First-Class Application Citizen 16. Chapter 13: Cross-Layers and Off-Layers 17. Index
18. Gems and Patterns 19. Other Books You May Enjoy

The Rails infrastructure layer and its diversity

When we talk about the infrastructure layer of a Rails application, we mean all the tools and services that the application relies on and are not part of the business or presentation logic. Infrastructure components act as a low-level base upon which we build an application. What does this base consist of? The following list is not exhaustive but should be enough to give you an idea of what belongs to the infrastructure layer:

  • Database adapters
  • Third-party API clients
  • Caching and storage systems (that is, Active Storage backends)
  • Configuration providers (credentials, secrets, and so on)
  • Background processing engines (for example, Sidekiq and GoodJob)
  • Web servers (for example, Puma and Unicorn) and Rack middleware
  • Logging and monitoring tools

As you can see, infrastructure spans the whole application and has different forms and factors. However, if we take a closer look at how Rails designs infrastructure...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}