Giter Site home page Giter Site logo

sebastianioanpop / ve.messaging Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ve-global/ve.messaging

0.0 2.0 0.0 58 KB

One abstraction layer for messaging transport to apply the better practices on azure

Home Page: http://www.veinteractive.com/

License: Apache License 2.0

C# 99.49% Batchfile 0.20% Thrift 0.30%

ve.messaging's Introduction

Build status

Ve.Messaging

One abstraction layer for messaging transport to apply the better practices on azure

How to use it

The Ve Messaging it is fundamentally using the consumer publisher model, so what you are going to have it is an IMessageConsumer and an IMessagePublisher.

IMessageConsumer: to get data from your message stream.

IMessagePublisher: to insert new messages on your message stream

This basic infrastructure and abstraction will be present on the base package Install-Package Ve.Messaging

To install the actual implementation you will need to install one of our providers for this message stream.

For example Install-Package Ve.Messaging.Azure.ServiceBus

#Using Azure Service bus

TO install the package you should use: Install-Package Ve.Messaging.Azure.ServiceBus

Part of the prerequisite for this provider we assume that you have a valid connection string to servicebus able to manage and send messages in the case od the publishers and manage and receive in the case of the readers

Creating the publisher for Azure ServiceBus

To create the publisher for azure service bus the code required it is

var statsdConfig = InstantiateStatsdConfig();
var client  = new VeStatsDClient(statsdConfig);
var publisherFactory = new PublisherFactory(
                client,
                new FailoverResolver(),
                new SimpleSerializer(),
                new TopicClientCreator(new TopicCreator())
                );

var sender = publisherFactory.CreatePublisher(new ServiceBusPublisherConfiguration()
            {
                PrimaryConfiguration = new TopicConfiguration()
                {
                    ConnectionString =
                        "YOUR CONNECTION STRING",
                    TopicName = "YOUR TOPIC NAME",
                },
                ServiceBusPublisherStrategy = ServiceBusPublisherStrategy.Simple
            });

ve.messaging's People

Contributors

diegoluiz avatar nepomuceno avatar andyroyle avatar pliyo avatar

Watchers

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