Domain-Driven Design in PHP-Год издания: 2016 Автор: Carlos Buenosvinos, Christian Soronellas, Keyvan Akbary Жанр: Учебное пособие Издательство: Packt ISBN: 978-1-78728-494-4 Язык: Английский Формат: PDF/EPUB/MOBI Качество: Издательский макет или текст (eBook) Интерактивное оглавление: Да Количество страниц: 387 Описание: Learn how to correctly design Entities, Value Objects, Services, Domain Events, Aggregates, Factories, Repositories and Application Services with PHP. Explore applying the Hexagonal Architecture within your application, whether within an open source framework or your own bespoke system. Finally, look into integrating Bounded Contexts, using REST and Messaging approaches. Узнайте, как правильно проектировать Сущности, Value Objects, Сервисы, События Предметной Области, Агрегаты, Фабрики, Репозитарии и Сервисы Приложений с помощью PHP. Исследуйте применения гексагональной архитектуры вашего приложения, будь то в рамках системы с открытым исходным кодом или вашей собственной сделанной на заказ системы. И, наконец, посмотрите на интеграцию Bounded Contexts, используя REST и Messaging.
Примеры страниц
Содержание
Preface 1 Chapter 1: Getting Started with Domain-Driven Design 7 Why Domain-Driven Design Matters 8 The Three Pillars of Domain-Driven Design 8 Ubiquitous Language 9 Event Storming 9 Considering Domain-Driven Design 10 The Tricky Parts 11 Strategical Overview 11 Related Movements: Microservices and Self-Contained Systems 12 Wrap-Up 14 Chapter 2: Architectural Styles 15 The Good Old Days 15 Layered Architecture 19 Model-View-Controller 20 Example of Layered Architecture 21 The Model 21 The View 23 The Controller 25 Inverting Dependencies: Hexagonal Architecture 26 The Dependency Inversion Principle (DIP) 26 Applying Hexagonal Architecture 27 Command Query Responsibility Segregation (CQRS) 29 The Write Model 31 The Read Model 34 Synchronizing the Write Model with the Read Model 36 Event Sourcing 42 Wrap-Up 49 Chapter 3: Value Objects 50 Definition 50 Value Object vs. Entity 51 Currency and Money Example 52 Characteristics 54 Measures, Quantifies, or Describes 54 Immutability 54 Conceptual Whole 56 Value Equality 57 Replaceability 59 Side-Effect-Free Behavior 59 Basic Types 61 Testing Value Objects 61 Persisting Value Objects 63 Persisting Single Value Objects 64 Embedded Value with an Ad Hoc ORM 64 Embedded Value (Embeddables) with Doctrine >= 2.5.* 67 Embedded Value with Doctrine
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum