Giter Club home page Giter Club logo

cf-example-netcore-rabbit-steeltoe's Introduction

.Net Core application example for Cloud Foundry

Description

Full description can be found in this article: https://www.altoros.com/blog/microservices-with-steeltoe-and-cloud-foundry-a-dotnet-app-using-microsoft-face-api/

This is an example of .NET Core web application based on a microservices architecture using Cloud Foundry, Steeltoe library, RabbitMQ message broker and Microsoft Cognitive Services API. The app allows users to detect human faces on a photo, extract avatars from them and send by email. The solution consists of a website and two services. All communication between the website and the services is done via RabbitMQ queues. Implementation of the Competing Consumers pattern makes the system reliable and scalable, while also helping us to decouple this system into small components.

Building

Enter your credentials for SMTP server and Microsoft Cognitive Services account in source code (AvatarMaker.Recognizer/Program.cs, AvatarMaker.EmailSender/Program.cs)

You have to publish all 3 projects, run these commands in corresponding folders:

dotnet restore
dotnet publish -o publish -c Release

Publishing to Cloud Foundry

Create an instance of RabbitMQ service:

cf create-service p-rabbitmq standard avatarmaker.rmq
cf push -p publish

Deploy applications, run this command for each of 3 projects:

cf push -p publish

How to use

Open the deployed web app (AvatarMaker.Web) in browser, enter URL of any image and your email and click the button.

Enjoy!

cf-example-netcore-rabbit-steeltoe's People

Contributors

aleksey-yermolenko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.