Coder Social home page Coder Social logo

microserviceprovider / daishi.amqp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from daishisystems/daishi.amqp

0.0 2.0 0.0 806 KB

Microservices SDK for .NET applications

Home Page: http://insidethecpu.com/2015/05/22/microservices-with-c-and-rabbitmq/

License: MIT License

C# 91.58% CSS 1.19% ASP 0.05% HTML 2.32% JavaScript 4.86%

daishi.amqp's Introduction

Image of insidethecpu

Microservices SDK for .NET applications

Join the chat at https://gitter.im/daishisystems/Daishi.AMQP Build status NuGet

As seen on visualstudiomagazine.com.

Microservices are groupings of lightweight services, interconnected, although independent of each other, without direct coupling or dependency. Microservices allow flexibility in terms of infrastructure; application traffic is routed to collections of services that may be distributed across CPU, disk, machine and network as opposed to a single monolithic platform designed to manage all traffic.

Click here for an in-depth tutorial on building Microservices using this framework. Image of Microservices as Gears

Installation

PM> Install-Package Daishi.AMQP

Sample Code

Connect to RabbitMQ

var adapter = RabbitMQAdapter.Instance;
 
adapter.Init("hostName", 1234, "userName", "password", 50);
adapter.Connect();

Send a Message

var message = "Hello, World!";
adapter.Publish(message, "queueName");

Retrieve a Message

string output;
BasicDeliverEventArgs eventArgs;

adapter.TryGetNextMessage("queueName", out output, out eventArgs, 50);

Continuously Poll for Messages

var consumer = new RabbitMQConsumerCatchAll("queueName", 10);
adapter.ConsumeAsync(consumer);
 
Console.ReadLine();
adapter.StopConsumingAsync(consumer);

Contact the Developer

Please reach out and contact me for questions, suggestions, or to just talk tech in general.

RSSTwitterLinkedInGoogle+YouTube

daishi.amqp's People

Contributors

daishisystems avatar gitter-badger avatar

Watchers

James Cloos avatar DY 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.