Domain Driven Design on Rails -...

4

Transcript of Domain Driven Design on Rails -...

Page 1: Domain Driven Design on Rails - samples.leanpub.comsamples.leanpub.com/domaindrivendesignonrails-sample.pdf · Domain Driven Design on Rails Author: John Dennis Created Date: 1/12/2016
Page 2: Domain Driven Design on Rails - samples.leanpub.comsamples.leanpub.com/domaindrivendesignonrails-sample.pdf · Domain Driven Design on Rails Author: John Dennis Created Date: 1/12/2016

Domain Driven Design on Rails

John Dennis

This book is for sale at http://leanpub.com/domaindrivendesignonrails

This version was published on 2016-01-12

This is a Leanpub book. Leanpub empowers authors and publishers with the Lean Publishingprocess. Lean Publishing is the act of publishing an in-progress ebook using lightweight tools andmany iterations to get reader feedback, pivot until you have the right book and build traction onceyou do.

© 2016 John Dennis

Page 3: Domain Driven Design on Rails - samples.leanpub.comsamples.leanpub.com/domaindrivendesignonrails-sample.pdf · Domain Driven Design on Rails Author: John Dennis Created Date: 1/12/2016

Contents

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Target Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Prepresiquites: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Page 4: Domain Driven Design on Rails - samples.leanpub.comsamples.leanpub.com/domaindrivendesignonrails-sample.pdf · Domain Driven Design on Rails Author: John Dennis Created Date: 1/12/2016

IntroductionYou’re building a Startup. Imagine you want:

• Achive High Availability through Infinite Horizontal Scaling• Horizontally scale your Proxy Layers, Application Server Layers, Cache Layers, WriteDatabase Layers.

• No more Distributed Transaction Management !• To do Event Sourcing and CQRS for real world problem• Rollback your system state at Any Point !• Easy architecture management for maintainance.• Easy recruitment for all seperate roles in your job interviewing.

This book is for you.

This book is a concise, step-by-step introduction to Domain Driven Design (DDD) with Ruby OnRails. I choose Ruby on Rails as our web application framework, but you can choose any toolinghere. This book is all about architecture design, it’s completely framework agnostic.

It covers:

• Rails: The Good and Bad Parts• Why and How do we do DDD• Ruby on Rails patterns to do DDD• How to achive a scalable architecture• Case studies

Target Audience

This book is for whom who needs a practical design and implementation with DDD and Ruby onRails.

Prepresiquites:

At a basic level:

• You know Ruby• You know SQL

1