All Projects → mauroservienti → welcome-to-the-state-machine-demos

mauroservienti / welcome-to-the-state-machine-demos

Licence: MIT license
Demos and sample for my "Welcome to the (state) machine" talk

Programming Languages

C#
18002 projects
HTML
75241 projects
TSQL
950 projects
CSS
56736 projects
powershell
5483 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to welcome-to-the-state-machine-demos

All Our Aggregates Are Wrong Demos
A microservices powered e-commerce shopping cart sample - based on SOA principles. Demos and sample for my "All our Aggregates are Wrong" talk
Stars: ✭ 130 (+664.71%)
Mutual labels:  talks, samples, soa, demos
Grpc Demos
Demos for my talk Beyond HTTP in ASP.NET Core 3.0 with gRPC
Stars: ✭ 74 (+335.29%)
Mutual labels:  samples, demos
wpf-demos
This repository contains the samples for Syncfusion WPF UI Controls and File Format libraries and the guide to use them.
Stars: ✭ 128 (+652.94%)
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 (+17.65%)
Mutual labels:  samples, demos
eventide-postgres
Event Sourcing and Microservices Stack for Ruby
Stars: ✭ 92 (+441.18%)
Mutual labels:  messaging, soa
Nservicebus
The most popular service bus for .NET
Stars: ✭ 1,816 (+10582.35%)
Mutual labels:  messaging, nservicebus
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 (+305.88%)
Mutual labels:  samples, demos
mangosta-android
MongooseIM client for Android
Stars: ✭ 31 (+82.35%)
Mutual labels:  messaging
whatsapp-bot
Made with Python and Selenium, can be used to send multiple messages and send messages as characters made of emojis
Stars: ✭ 34 (+100%)
Mutual labels:  messaging
csa-misc-utils
Miscellaneous samples, documents, how-tos, utilities, scripts, and other CSA tidbits
Stars: ✭ 79 (+364.71%)
Mutual labels:  samples
shell-samples
No description or website provided.
Stars: ✭ 14 (-17.65%)
Mutual labels:  samples
demos
ebidel.github.io/demos/
Stars: ✭ 140 (+723.53%)
Mutual labels:  demos
godsend
A simple and eloquent workflow for streaming messages to micro-services.
Stars: ✭ 15 (-11.76%)
Mutual labels:  messaging
design-system-talks
🍿A collection of talks on design systems
Stars: ✭ 98 (+476.47%)
Mutual labels:  talks
WebDAVServerSamplesJava
WebDAV server examples in Java based on IT Hit WebDAV Server Library for Java
Stars: ✭ 38 (+123.53%)
Mutual labels:  samples
rabbitmq-jms-client
RabbitMQ JMS client
Stars: ✭ 51 (+200%)
Mutual labels:  messaging
Leanplum-iOS-SDK
Leanplum's integrated solution delivers meaningful engagement across messaging and the in-app experience.
Stars: ✭ 63 (+270.59%)
Mutual labels:  messaging
nodebb
NodeJs components
Stars: ✭ 19 (+11.76%)
Mutual labels:  messaging
iGap-Android
iGap Client for Android Source Code
Stars: ✭ 54 (+217.65%)
Mutual labels:  messaging
storm-spec
Specification for Storm: L2/L3 distributed storage and messaging with economic incentivisation leveraging LNP/BP ecosystem
Stars: ✭ 62 (+264.71%)
Mutual labels:  messaging

Welcome to the (state) machine - Demos

A tickets booking system - based on SOA principles.

This demo aims to demonstrate how to use sagas to overcome the architectural limitations of Process Managers in distributed systems. This is the support demo of my Welcome to the (state) machine talk.

The demo assumes some knowledge of what service boundaries are and what's the role ViewModel Composition in SOA based systems. I recommend you watch the following 2 talks, by @adamralph and @mauroservienti (myself), to find out more about how to figure out your service boundaries, and how to deal with UI/ViewModel aspects in a microservices/SOA system without reintroducing coupling by doing request/response between the services.

An exhaustive dissertation about ViewModel Composition is available on my blog in the ViewModel Composition series.

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-LocalDB-Instance.ps1, with elevation, to create the LocalDB instance and all the required databases
  • Run Teardown-LocalDB-Instance.ps1, with elevation, to drop all the databases and delete the LocalDB instance

The created LocalDB instance is named (localdb)\welcome-to-the-state-machine. To only recreate databases run the Recreate-Databases.ps1, with elevation, against an already created LocalDB instance.

NOTE: If you receive errors regarding "Microsoft ODBC Driver", you can work around these by connecting to the (localdb)\welcome-to-the-state-machine database using, for example, Visual Studio or SQL Managerment Studio, and running the SQL contained in the Setup-Databases.sql 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.

Ensure the following projects are set as startup projects:

  • Website
  • Reservations.Service
  • Finance.Service
  • Finance.PaymentGateway
  • Shipping.Service

NServiceBus configuration

This sample has no NServiceBus related pre-requisites as it's configured to use Learning Transport and SQL Persistence.

The Learning Transport is explicitly designed for short term learning and experimentation purposes. It 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

This demo is built using NServiceBus Sagas, 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].