This repository contains example applications built using the ServiceBricks foundation. These examples are intended to provide you guidance on how to build your own applications quickly. All of these examples use the official pre-built microservices we have available:
Each of the examples below contain multiple web applications. After opening the solution in Visual Studio, right click the solution and select the options for Configure Startup Projects. Select the radio option for Multiple Startup Projects and change the drop down for each project to be Start. When you run the application, multiple browser windows will be displayed for each web application.
This example demonstrates how to host the ServiceBricks platform in a single web application and have all pre-built microservices store their data in a single database using the database engine you specify.
Since all microservices are hosted within the same web application, we use the In-Memory Service Bus provider to allow microservices to communicate with each other.
This example demonstrates how to host the ServiceBricks platform in a single web application and have all pre-built microservices store their data in multiple databases using the database engine(s) you specify.
Since all microservices are hosted within the same web application, we use the In-Memory Service Bus provider to allow microservices to communicate with each other.
This example demonstrates how to host the ServiceBricks platform in multiple web applications and have all pre-built microservices store their data in a single database using the database engine you specify.
This example requires the use of a Service Bus provider to communicate asynchronous messages between microservices. It is setup to use Azure Service Bus, Basic with queues, but you can also use standard/advanced with topics and subscriptions.
This example demonstrates how to host the ServiceBricks platform in multiple web applications and have all pre-built microservices store their data in multiple databases using the database engine(s) you specify.
This example requires the use of a Service Bus provider to communicate asynchronous messages between microservices. It is setup to use Azure Service Bus, Basic with queues, but you can also use standard/advanced with topics and subscriptions.
By using a separate logging database for each web application, you achieve service-specific logging. You will have to query each logging microservice on each web application to view all messages in the infrastructure.
By using the same logging database for all logging microservices in all web applications, you achieve centralized logging. You can query one place to view logging messages for the entire infrastructure.
Alternatively, you can also setup:
This is a copy of Example 1, with the addition of controller methods, models and views to enable security for your website. It contains example pages for registering, logging in, confirming your password, resetting your password and other standard pages to help secure your web application.
We want to hear from our users. Let us know if you would like any more examples.
ServiceBricks is the cornerstone for building a microservices foundation. Visit http://ServiceBricks.com to learn more.