# seneca-nservicebus-transport

Latest version **1.0.0** (published 2015-12-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install seneca-nservicebus-transport
pnpm add seneca-nservicebus-transport
yarn add seneca-nservicebus-transport
bun add seneca-nservicebus-transport
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-12-15 |
| First published | 2015-12-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+6 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | David Gonzalez |
| Maintainers | dagonza |

## Links

- npm: https://www.npmjs.com/package/seneca-nservicebus-transport
- Repository: https://github.com/dgonzalez/seneca-nservicebus-transport
- Issues: https://github.com/dgonzalez/seneca-nservicebus-transport/issues
- npm.io page: https://npm.io/package/seneca-nservicebus-transport

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^3.10.1
- [seneca](https://npm.io/package/seneca.md) ^0.9.0
- [amqplib](https://npm.io/package/amqplib.md) ^0.4.0

## Recent versions

- 1.0.0 (latest) — 2015-12-15

## README

# seneca-nservicebus-transport
Seneca micro-services message transport over NServiceBus using RabbitMQ as client.
# How does it work?
NServiceBus is an ESB designed for .NET. However, it supports RabbitMQ as a transport which enables frameworks like Seneca to use NServiceBus as a transport layer for the messaging.

NServiceBus uses exchanges and queues in RabbitMQ in order to orchestrate the communication. In the subfolder SenecaNserviceBus there is a .NET project with an example of the simplest configuration for NServiceBus with [NServiceBus Host](http://docs.particular.net/nservicebus/hosting/nservicebus-host/) to be used by Seneca. It is configured to use an in-memory database for storing the commands.

NServiceBus will listen on a exchange Called SenecaNServiceBus and forward the messages sent from the `act` part of seneca into a exchange called `SenecaActExchange` and and the response from those messages into a exchange called `SenecaResExchange`. Those exchanges can be bound to queues in RabbitMQ and the name of the queues can be configured in seneca-nservicebus-transport through the parameters `actqueuename` and `resqueuename` in the options.

# How can I run it?
Compile the .NET project. Please be aware that you might need to change the RabbitMQ URL to point to the right host (extracting it into configuration is work in progress). An application called NServiceBus.Host.exe will be generated. Just run it and NServiceBus will be ready to process the messages. It is configured to create the needed queues but you will need to add two extra: `SenecaActExchange` and `SenecaResExchange`. If there is any queue missing the logs will point it out.

# Details
It was successfully tested in Node 4.2.3 LTS and .NET 4.5.x. If you have any query please contact us or create an issue in this project. Suggestions are more than welcome (as well as PRs with proposed changes).

---
_Source: https://npm.io/package/seneca-nservicebus-transport · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
