Questions tagged [microservices]

A novel strategy in building a singular application by adopting an architectural framework where it is structured as an amalgamation of discrete and autonomously deployable services.

Efficient Inter-service Communication Utilizing a Common Object Layer for Request and Response Handling

Currently, I am working on a distributed system that is built on Spring Boot with communication between services being handled by REST API calls. With more than 8 services in place, I am looking to create a common communication layer or library for all of ...

What is the process for invoking a microservice (constructed in express js) from an angular application that is currently communicating with a sails js backend?

I had initially developed an application with Angular frontend and Sails JS backend. However, I recently separated some of the backend functions into a micro-service using Express. Now, I am looking for guidance on how to call these functions from my mai ...

Implementing Node.js microservices with AWS Cognito leveraging Amplify's best practices

I am currently working on developing a Node.js API that is broken down into several small APIs (microservices) communicating with each other through requests and responses. Additionally, I am utilizing Angular for the frontend. My next step is to enhance ...

Collaborating on documents across microservices

I am currently in the process of transitioning a project from a monolithic structure to microservices architecture. The project is built in Node.js, and I have started exploring Seneca.js, specifically its seneca-mesh module. My first step was to move imag ...

Exploring the Integration of Two Independent Microservices via RESTful API for Data Exchange

Is there a way to establish a connection between two distinct APIs in different programming languages? Specifically, I have an application built in node.js with MongoDB and another one in Python with MySQL. I'm facing the challenge of establishing a 1: N r ...

Creating dynamic Kafka topic names within a NestJS microservice

Currently in Nestjs, I have integrated Kafka as my message broker and specified the topic name like so: @MessagePattern('topic-name') async getNewRequest(@Payload() message: any): Promise<void> { // my implementation logic } I am curious if there ...

What causes comments to stay in a pending state for so long?

For my latest project, I designed a microservice application specifically for a small blog system. The application comprises of various essential services like post service, comment service, query service, and moderation service. The moderation service pl ...

Validation of input and authentication in the architecture of microservices and API gateways

Where should the input validation and authentication validation be performed in a microservices architecture? Should it happen in the api-gateway, each individual microservice, or a combination of both? Perhaps some validation should occur in the api-gate ...

Combining multiple repositories using docker-compose

Currently, I have two services deployed on separate GitLab repositories but running on the same host using supervisord. The CI/CD process in each repository pushes code to this shared host. I am now looking to transition from supervisord to Docker. To beg ...

Developed specifically for asynchronous messaging, this Node.js REST API wrapper simplifies

When working with an event-driven microservice architecture that utilizes asynchronous messaging, what options exist for creating a 'synchronous' REST API wrapper where requests wait for response events before providing a result to the client? F ...

Navigating shared models within micro service architectures

My objective is to establish an architecture where services can be deployed independently and operate autonomously. However, what should be done when there are two services that both need to access the same type of object from a database? In my particular ...

Is there a Node ORM that supports application-side joins?

Initially, I experimented with Loopback and found it to be a useful tool. However, one limitation I encountered is that it does not support relationships across multiple REST data services. Instead, Loopback makes a call to the initial data service and pas ...

Node.js: Extract the object's name and value that are sent from the frontend

I'm in the process of creating a microservice using nodejs. The request is returning the following JSON. { "distCd": "abcd", "distName": "parentLife Distributor (TOD)", "stateCd": "", "subdistInd": false, "maindistInd": true ...

How can you access an API hosted on the same EC2 instance but using a different port number?

I have a setup where multiple Node.js servers are running on the same EC2 instance. Whenever I need to call an API that is hosted on a different port of the same instance, I currently use AXIOS for calling. I'm curious if this is the only method avail ...

Dockerizing Microservices - A New Approach to Architecture

I am currently developing a micro-services project that utilizes docker technology. Within this project, I have a specific micro-service tasked with listening and retrieving data from multiple sources. My goal is to enable the capability of dynamically s ...

In a particular configuration involving Docker and Nginx rewrite rules, there is a notable alteration in URLs that include question marks when utilized in jQuery.ajax calls

My PHP/Laravel app is running smoothly in a dockerized environment using the php:7.4-apache container. During development, we had it accessible through http://localhost:81. Now, our aim is to make this service available at http://localhost/foo/bar within ...

Apologies, we were unable to establish a connection as the server refused to respond on the specified IP address and port

kubectl get namespace default Active 3h33m ingress-nginx Active 3h11m kube-node-lease Active 3h33m kube-public Active 3h33m kube-system Active 3h33m kubectl get services -n ingress-nginx NAME ...