question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: Configure multiple transports for a single app (microservice)

See original GitHub issue

I’m submitting a…


[ ] Regression 
[ ] Bug report
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Hi,

I’d like to know if it’s possible to create a microservice component with multiple transports. I’d like to have HTTP and Queue-based transports per application.

The idea being HTTP to be used for external consumptions and Queue for internal comms between apps.

Would that (have two transports in a single app) be a recommended pattern?

Thanks, Josh

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
shekohexcommented, May 29, 2018

If I’m got your point, so you want to make a hybrid Application, Here is an example from official Examples : https://github.com/nestjs/nest/blob/master/sample/03-microservices/src/main.ts See the commented block.

0reactions
lock[bot]commented, Sep 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microservices | NestJS - A progressive Node.js framework
Nest supports several built-in transport layer implementations, called transporters, which are responsible for transmitting messages between different ...
Read more >
NestJS - Combine HTTP with MQTT and TCP in microservices
Yes it is. And you can connect multiple microservices, even if they are using the same Transport strategy (e.g. 3 Redis microservices, ...
Read more >
Part 1: Introduction to Microservices and Transporters
Transporters enable you to connect components over a network using a pluggable communications layer and a very simple application-level message ...
Read more >
Pattern: Microservice Architecture
It must support a variety of different clients including desktop browsers, mobile browsers and native mobile applications. The application might also expose an ......
Read more >
Scalable microservices in Node using Nest.JS - Webera
In this step we will create a new application in NestJS using your CLI ... NestJS supports several built-in transport layer implementations.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found