All Projects → mauroservienti → All Our Aggregates Are Wrong Demos

mauroservienti / All Our Aggregates Are Wrong Demos

Licence: mit
A microservices powered e-commerce shopping cart sample - based on SOA principles. Demos and sample for my "All our Aggregates are Wrong" talk

Projects that are alternatives of or similar to All Our Aggregates Are Wrong Demos

welcome-to-the-state-machine-demos
Demos and sample for my "Welcome to the (state) machine" talk
Stars: ✭ 17 (-86.92%)
Mutual labels:  talks, samples, soa, demos
bitmovin-player-web-samples
Showcases build around the Bitmovin Adaptive Streaming Player, demonstrating usage and capabilities of the HTML5 based HLS and MPEG-DASH player, as well as the Flash based Fallback.
Stars: ✭ 69 (-46.92%)
Mutual labels:  samples, demos
uwp-demos
This repository contains the samples for Syncfusion Universal Windows Platform UI Controls and File Format libraries and the guide to use them.
Stars: ✭ 20 (-84.62%)
Mutual labels:  samples, demos
design-practice-repository
Summaries of artifacts, templates, practices, and techniques for agile architecting (DPR-mm) and service design (SDPR-nn).
Stars: ✭ 42 (-67.69%)
Mutual labels:  ddd, soa
wpf-demos
This repository contains the samples for Syncfusion WPF UI Controls and File Format libraries and the guide to use them.
Stars: ✭ 128 (-1.54%)
Mutual labels:  samples, demos
ddd-example-ecommerce
Domain-driven design example in Java with Spring framework
Stars: ✭ 73 (-43.85%)
Mutual labels:  ddd, soa
Grpc Demos
Demos for my talk Beyond HTTP in ASP.NET Core 3.0 with gRPC
Stars: ✭ 74 (-43.08%)
Mutual labels:  samples, demos
Terraform Up And Running Code
Code samples for the book "Terraform: Up & Running" by Yevgeniy Brikman
Stars: ✭ 1,739 (+1237.69%)
Mutual labels:  samples
Java Ddd Example
☕🎯 Hexagonal Architecture + DDD + CQRS in a Java project using SpringBoot
Stars: ✭ 119 (-8.46%)
Mutual labels:  ddd
Myth
Reliable messages resolve distributed transactions
Stars: ✭ 1,470 (+1030.77%)
Mutual labels:  soa
Zanphp
PHP开发面向C10K+的高并发SOA服务 和RPC服务首选框架
Stars: ✭ 1,451 (+1016.15%)
Mutual labels:  soa
Ddd On Scala
DDD sample implementation by Scala.
Stars: ✭ 113 (-13.08%)
Mutual labels:  ddd
Arcgis Pro Sdk Community Samples
ArcGIS Pro SDK for Microsoft .NET Framework Community Samples
Stars: ✭ 119 (-8.46%)
Mutual labels:  samples
Bifrost
This is the stable release of Dolittle till its out of alpha->beta stages
Stars: ✭ 111 (-14.62%)
Mutual labels:  ddd
Php Ddd Example
🐘🎯 Hexagonal Architecture + DDD + CQRS in PHP using Symfony 5
Stars: ✭ 1,960 (+1407.69%)
Mutual labels:  ddd
Dddplus Demo
♨️ Demonstrate how to use DDDplus to build a complex OMS.演示如何使用DDDplus实现一套订单履约中台OMS
Stars: ✭ 111 (-14.62%)
Mutual labels:  ddd
Eshoponcontainersddd
Fork of dotnet-architecture/eShopOnContainers in full DDD/CQRS design using my own patterns
Stars: ✭ 126 (-3.08%)
Mutual labels:  ddd
Fsharp.domain.validation
Designing with types requires a lot of code - this library fixes that
Stars: ✭ 119 (-8.46%)
Mutual labels:  ddd
Android Places Demos
Google Places SDK Demos for Android
Stars: ✭ 118 (-9.23%)
Mutual labels:  samples
Go Samples
Go samples for Google Workspace APIs
Stars: ✭ 117 (-10%)
Mutual labels:  samples

All our Aggregates are Wrong - Demos

A microservices powered e-commerce shopping cart sample - based on SOA principles.

How to get the sample working locally

Get a copy of this repository

Clone or download this repo locally on your machine. If you're downloading a zip copy of the repo please be sure the zip file is unblocked before decompressing it. In order to unblock the zip file:

  • Right-click on the downloaded copy
  • Choose Property
  • On the Property page tick the unblock checkbox
  • Press OK

Check your machine is correctly configured

In order to run the sample the following machine configuration is required:

  • PowerShell execution policy to allow script execution, from an elevated PowerShell run the following:
Set-ExecutionPolicy Unrestricted

NOTE: On a clean machine do not install latest version, as of this writing 13.1, of Microsoft ODBC Driver and Microsoft ODBC Command Line Utilities as the latter is affected by a bug that prevents the LocalDb instance to be accessible at configuration time.

Databases setup

To simplify LocalDB instance setup 2 PowerShell scripts, in the scripts folder, are provided for your convenience. Both need to be run from an elevated PowerShell console.

  • Run Setup-Databases.ps1, with elevation, to create the LocalDB instance and all the required databases
  • Run Teardown-Databases.ps1, with elevation, to drop all the databases and delete the LocalDB instance

The created LocalDB instance is named (localdb)\all-our-aggregates-are-wrong.

NOTE: If you receive errors regarding "Microsoft ODBC Driver", you can work around these by connecting to the (localdb)\all-our-aggregates-are-wrong database using, for example, Visual Studio or SQL Managerment Studio, and running the SQL contained in the Setup-Databases.sql file to manually create databases.

NOTE: In case the database setup script fails with a "sqllocaldb command not found" error it is possible to install LocalDb as a standalone package by downloading it separately at https://www.microsoft.com/en-us/download/details.aspx?id=29062

Startup projects

Solutions is configured to use the SwitchStartupProject Visual Studio Extension to manage startup projects. The extension is not a requirement, it's handy.

The solution can be configured to run 3 different demos.

Demo (default)

Demos the default shopping cart behavior and all its implemented functionalities. Add items to the cart, observe the various "services" console windows they'll display log messages related to the ongoing processes. Leave the cart inactive for a few seconds and observe the stale cart policy kicking in, first raising a warning, finally deleting stale carts. Ensure the following projects are set as startup projects:

  • WebApp
  • Sales.Api
  • Marketing.Api
  • Warehouse.Api
  • Shipping.Api
  • Sales.Service
  • Marketing.Service
  • Warehouse.Service
  • Shipping.Service

Demo (failed services)

Demos what happens when a back-end service is not available. Add an item to the cart, visualize the shopping cart and observe the different information displayed in relation to the shipping estimates. Ensure the following projects are set as startup projects:

  • WebApp
  • Sales.Api
  • Marketing.Api
  • Warehouse.Api
  • Shipping.Api
  • Sales.Service
  • Marketing.Service

Demo (Platform)

Uses the Particular Platform Sample package to visualize monitoring information, and messages and policies (Sagas) runtime behaviors.

  • WebApp
  • Sales.Api
  • Marketing.Api
  • Warehouse.Api
  • Shipping.Api
  • Sales.Service
  • Marketing.Service
  • Warehouse.Service
  • Shipping.Service
  • PlatformLauncher

NServiceBus configuration

This sample has no NServiceBus related pre-requisites as it's configured to use Learning Transport and Learning Persistence, both explicitly designed for short term learning and experimentation purposes.

They should also not be used for longer-term development, i.e. the same transport and persistence used in production should be used in development and debug scenarios. Select a production transport and persistence before developing features.

NOTE: Do not use the learning transport or learning persistence to perform any kind of performance analysis.

Disclaimer

Parts of this demo are built using NServiceBus, I work for Particular Software, the makers of NServiceBus.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].