I've two node apps/services that are running together,  1. main app 2. second app  The main app is responsible to show all the data from diffrent apps at the end. Now I put some code of the second app in the main app and now its working, but I wa...
I have been racking my brains for a simple solution.  Lets say, I have 10 API endpoints in my Node JS application.   I have already allowed 3 of them to be public, the remaining 4 have JWT based authentication  Now I have 3 more routes, which will no...
There are so many answers and blog posts saying "never share code between microservices" and I wonder right now how I am supposed to follow that advice. I've got the following microservices and each of them is communicating via RabbitMQ:...
I’m currently writing a web application that has a bunch of microservices. I’m currently exploring how to properly communicate between all these services and I’ve decided to stick with a message bus, or more specifically Apache Kafka.   However...
I am creating web app and micorservice for that app, and both need to have same DB model created with Sequelize. What is approach for handling this task with NodeJS?  I am thinking about creating separate module of my DB models and save it in private...
Based on the Netflix Hystrix circuit-breaker design pattern i was trying to do the following:  const circuitBreaker = require('opossum'); import * as request from 'request-promise';  const circuit = circuitBreaker(request.get);  circu...
I'm trying to put together a small edgeSDK microservice operation that programmatically adds a body to the http request it makes so that the user doesn't have to do it manually as part of the curl command. At the moment, if I execute in a ter...
we are currently facing the challenge to integrate multiple API microservices and their corresponding UI into a web app.  We allready have some UI Solutions which we want to reuse and are searching for a good way to structure the client part.  The UI...
I am writing a service with node.js, and depending on whether a file in my gitlab project has been recently updated or not, the way the service works will change. So how can I tell if the content of a file in my gitlab project has changed or not on t...
I have this microservice written with NestJs:  async function bootstrap() {   const port = parseInt(process.env.PORT || '5000', 10);    const app = await NestFactory.createMicroservice(ApplicationModule, {     transport: Transport.TCP,     op...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.