Questions tagged [microservices]

1

votes
3

answer
639

Views

Issue while using the kubernetes annotations

I've read documentation of kubernetes annotations. But I couldn't find basic example about using this annotations. For Example; I have a deployment yaml like below: apiVersion: extensions/v1beta1 kind: Deployment metadata: annotations: test_value: 'test' name: nginx-deployment labels: app: nginx sp...
user8078899
1

votes
2

answer
126

Views

what are the best approaches (practices) to create stateful microservices?

I need to create a food ordering service, using microservices, scalable , cluster, several steps to order. Need to store user data between steps / requests. What is an approach to keep state and user data? Store it in DB? Cache? Shared memory? Are there any tutorials for the best practice of it? (I...
arminvanbuuren
1

votes
1

answer
59

Views

Is Event Sourcing helpful to Machine Learning

I am new to Event Sourcing, Event Store, Message Store and Machine Learning. And we are planning to implement message store and the reason they mentioned about implementing message store (instead traditional db, crud) is because the message store eventually helps in deep learning or machine learning...
Sreekanth Reddy
0

votes
1

answer
21

Views

GET , POST , PUT , DELETE type based Authentication in keycloak

I have a resource in an API for which URI is /product/{id} and doing three operations VIEW, GET, DELETE basse on HttpMethod. How can I manage one user is allowed to only VIEW and admin is allowed to VIEW, GET, DELETE i.e. all options. I had seen Keycloak Adapter Policy Enforcer but, I don't understa...
Zenny
0

votes
0

answer
8

Views

Understanding on Kubernetes layout

In Kubernetes layout ,First create cluster of nodes (consider as physical PC) . Now inside each PC there can be multiple POD.Inside each POD there is again multiple container. Each container can holds multiple application (but ideally should restrict to one). Now if the above statement is true , 1)t...
Baharul
0

votes
0

answer
6

Views

Adding custom properties to Fault entity

I'm wondering is it possible to configure additional property to Fault message? I have my own exception type which is defined as follows: public class DomainException : Exception { public string Code { get; private set; } ... } I have generic consumer which handles all faults that occured, but I d...
bielu000
1

votes
0

answer
3

Views

Using AWS API Gateway+Lambda Without It becoming a Dependency

There's no doubt to the benefits of API Gatway+Lambda for a micro-services. My concern is what would happen if we decide to move off API Gateway+Lambda to ECS/Fargate, or even another Cloud. There seems to be a consensus on using one Lambda function per route/action. I have some theories about how t...
Sam Hammamy
0

votes
0

answer
4

Views

Netflix-zuul can't route spring boot microservice api in docker

I'm getting 'There was an unexpected error (type=Internal Server Error, status=500) GENERAL' error when i deploy my zuul-gateway-service in docker container and test it. But in windows, when i run applications in eclipse, everything is working just fine, i can reach services via zuul gateway port an...
H. Girit
1

votes
1

answer
269

Views

PACT provider verification against public APIs

am trying to do test for consumer driver contract testing using pact jvm and able to generate consumer side contract file.During provider side verification, how to provide public API's instead of localhost most of the examples uses only localhost as provider, any help pls @RunWith(PactRunner.class)...
Laiku
1

votes
1

answer
649

Views

No service dependencies found in Jaeger UI

I am new to jaeger and I am facing issues with finding the services list in the jaeger UI. Below are the .yaml configurations I prepared to run jaeger with my spring boot app on Kubernetes using minikube locally. kubectl create -f https://raw.githubusercontent.com/jaegertracing/jaeger-kubernetes/mas...
Sourav
1

votes
0

answer
303

Views

Distributed or Central Authorisation in Django Microservices

I'm building a Django rest framework based service which has some complicated permissions. So far, my microservices stack looks like this: /auth/ JWT authentication service /users/ - adding users, adding them to different services /new-service/ - needs authorization Users database is shared by auth...
Edward Williams
1

votes
1

answer
532

Views

Event Sourcing Microservices in Node

I am trying to build a microservices POC and trying to incorporate concepts of ES/DDD/CQRS, so I had a couple of questions for practitioners out there who have actually implemented this: 1) Is it possible to build microservices without using ES, since it seems that this adds a major amount of comple...
John
1

votes
2

answer
23

Views

Does WCF(Windows Communication Foundation) have a Micro Web Service feature?And does it only supported by REST?

my question is this: Does WCF(Windows Communication Foundation) have a Micro Web Service feature?And does it only supported by REST?
Furkan Topal
1

votes
1

answer
192

Views

How to integrate Kubernetes with existing AWS ALB?

I want to use existing AWS ALB for my kubernetes setup. i.e. I don't want alb-ingress-controller create or update any existing AWS resource ie. Target groups, roles etc. How can I make ALB to communicate with Kubernetes cluster, henceforth passing the request to existing services and getting the re...
raman.pndy
1

votes
1

answer
318

Views

How to automatically scale up and scale down of micro services instances built using Spring Boot and Spring cloud?

How to automatically scale up and scale down of micro services instances built using Spring Boot and Spring cloud? I didn't find much info about this on web. please help in understanding the possible approaches
Riding Cave
1

votes
1

answer
338

Views

Saga Choreography implementation problems

I am designing and developing a microservice platform based on the specifications of http://microservices.io/ The entire framework integrates through socket thus removing the overhead of multiple HTTP requests (like most REST APIs). A service registry host receives the registry of multiple microserv...
Victor França
1

votes
0

answer
280

Views

Is it possible for Netflix Ribbon to show log which server was chosen

I'm creating a microservices system and I have Zuul server where I use Ribbon which connects to Eureka(which returns me the available service instances) and perform load-balancing. Everything works great, however I would like to see in the logs which particular instance was chosen by Ribbon. I know...
user2455862
1

votes
0

answer
277

Views

Intercommunication between asp.net core web Api using RabbitMQ

I have two web api. One publish a message when specific controller be call (work) One subscribe to receive message. (not work) Here is config for both web api : public void ConfigureServices(IServiceCollection services) { services.AddMvc(); services.AddRawRabbit(); var builder = new ContainerBuilde...
Thiện Sinh
1

votes
1

answer
37

Views

MicroService with DCOS

I decided to move to MicroService architecture, divide a project into multiple services and run those services on DCOS.It really gives a good story to project deployment and maintenance. But it makes development process complex. For the developer, it was easy to run the application locally while imp...
omee
1

votes
2

answer
84

Views

Encapsulating a workflow or a series of actions

I have a simple CRUD repository service. It executes operations against a remote repository. When creating/updating data, I need to orchestrate a series of actions: Update a different database Update CRM records Update another database I'm having trouble designing this orchestration from the perspe...
1

votes
1

answer
40

Views

Separating Node.js applications into multiple

So me being stupid didn't think about that I build my whole application front to back on one Node.js application instance. Now I have to figure out how to make each thing its own service. My current application has the front end (main site), front end (application/software part) and the backend all...
Kirbytech
1

votes
0

answer
56

Views

How to download file using Express?

I am having a curious problem where a download request from the browser will be passed onto a microservice via the Express layer that serves the frontend. The service queries the db, and generates a csv on the fly and can stream it. Right now, I am fetching the file to my Express server, and then s...
jagzviruz
1

votes
2

answer
270

Views

Accessing multiple services using single url docker-compose

I am using docker-compose to deploy multiple microservices in flask. Here is the compose code version: '3' services: test-api: volumes: - ./test-api:/test-api build: test-api ports: - '5000:5000' redis: image: 'redis:alpine' search: volumes: - ./seach:/search environment: - HTTP_PORT=5000 - REDIS_UR...
container_n00b
1

votes
1

answer
240

Views

Mock the dependent microservices for testing the performance of another microservice

I am working on setting up the environment for testing the performance of a microservice A.This microservice A has dependency to another micro service B.Both the microservices are registered in JHipster Registry and Rippon client is used for communicating between microservices(A & B).How do I mock t...
Gopinath Srinivasan
1

votes
0

answer
159

Views

Server-side load balancing and Third-Party discovery with Zuul & Consul / Eureka

we are planning to built our next projects using microservices-architecture and we have already defined that we want to use Zuul as API-Gateway. Right now we have to decide which service registry we will use: Consul or Eureka. We want to use server-side load balancing (via Zuul itself). Is it possib...
RaouZ
1

votes
0

answer
379

Views

WARNING: Failed to contact Naming Service. Attempting to contact Failover Manager Service

Problem I am trying to deploy the service fabric application from Visual Studio and Power Shell. It shows me the same error Error WARNING: Failed to contact Naming Service. Attempting to contact Failover Manager Service... WARNING: Failed to contact Failover Manager Service, Attempting to contact F...
Malik Kashmiri
1

votes
0

answer
226

Views

Client app in Zuul RestTemplate gets login page instead of JSON

I am experimenting with microservices architecture and I have an issue. I have a Zuul gateway and client web application with login form and controllers inside in zuul gateway. Routes to the microservices are defined in Zuul application.yaml config. Microservices also register them selves to eureka...
freeland
1

votes
0

answer
184

Views

Error Creating Multiple Containers with multiple Django projects

How to run multiple Django Projects as individual containers. docker-compose.yml web1: build: ./test1 expose: - '8000' links: - postgres:postgres volumes: - /usr/src/app - /usr/src/app/static command: python manage.py runserver 0.0.0.0:8000 web2: build: ./test2 expose: - '3000' links: - postgres:pos...
Kishan M
1

votes
1

answer
305

Views

Securing internal service communication in a Kubernetes cluster with https and TLS

I'm working on a set of microservices and I need to secure the communication between the individual services (using https + TLS) The service deployments have a Service object set up with an assigned Cluster IP. kube-dns automatically creates a DNS record with format *.cluster.local when the services...
David Jarman
1

votes
0

answer
45

Views

docker build – layer cache with multiple nested micro-packages

We have a basic docker image that consists of multiple nested packages, each with it's own package.json dependencies. Consider the next directory structure service-dir/ |––Dockerfile | |––src/ | | | |––package1/ | | | package.json | | | |––package2/ | | | package.json | |...
Ihar Krasnik
1

votes
0

answer
534

Views

Using RabbitMQ for communication in a Microservice architecture but should I create a API Gateway on top?

I basically have a smaller software that is using the Microservice architecture. I am currently using RabbitMQ to do the communication between UI and services and that works great. However I am thinking about creating a new microservice, a API Gateway, that basically takes the RabbitMQ logic from th...
codingcow
1

votes
0

answer
59

Views

Microservices : hitting same microservice multiple time

I was running microservices in debug mode but i recognise that my code is running multiple times means one request done his job still the other one is doing same I am new in microservices not able to understand why it is happening? is because of multiple eureka instances or what?how can i avoid it?
Magiee
1

votes
1

answer
920

Views

RabbitMQ asynchronously

I want to process RabbitMQ queue in a consumer service. When I try to follow tutorials, i can see that it processes message by message. But what if processing of some message takes longer (e.g. longer DB response)? Then it won't process anything else. I would like to have it asynchronous. So it can...
suchoss
1

votes
0

answer
68

Views

How to propagate 4XX errors to end-user which occurred during internal communication between upstream micro-services?

Let's say I have three micro-services A, B, C. Assume, that the client calls client--> A --> B --> C Client call to micro-service A , which then calls to B and B then calls to C If any of B or C returns 5XX, A will show a 502 Error to user. client --> A --> 5XX or client --> A --> B--> 5XX The cl...
Neel Salpe
1

votes
0

answer
178

Views

Queries are slower in Foxx microservice

We've noticed significant performance decreases when we move our AQL queries from ArangoDB's own REST API to a custom Foxx microservice. Is this to be expected? For example, if we run a multithreaded load test from a remote machine that asks for the count of documents in an 800,000-document collect...
Nunzio Ewald
1

votes
0

answer
505

Views

Zuul Read Timeout Exception

I have Zuul which is trying to connect to Student Service through Eureka. I have 8 Instances of Student Service registered with Eureka. Zuul is supposed to connect to any one of the Student Service and do load balancing. I am observing when I have less Student Service Instances Response Time is les...
AB90
1

votes
0

answer
52

Views

securing internal rest api traffic

There is a lot of google hits out there but I can't find a satisfactory answer. We are currently adopting the micro-services architecture. My current concern is with internal rest API calls. I've read plenty that says even though the calls are internal we should still encrypt the traffic. Okay that'...
paul
1

votes
1

answer
165

Views

Swagger with spring boot microservice

I have a microservice-A which gets the token as a header from another microservice-B. Now I want to implement swagger2 in microservice-A. The problem is every request flows through microservice-B. So swagger-ui throws error in local as it is not able to get those header parameter which microservice...
Pooja Mahapatra
1

votes
0

answer
30

Views

Implement security on messages passed from one micro service to other

I am having 4 different micro-services in my application. The technology stack that I am using for the development of applications is SBT stack(Scala,Akka and Play web framework). For external clients to communicate with my micro-services, I have security mechanisms such as authorization and authent...
Chaitanya Waikar
1

votes
0

answer
102

Views

Azure Service Bus - Receive messages from two separate subscriptions in parallel

I have a service fabric stateless service that listens to a service bus subscription for messages using this code: Client.OnMessage(receivedMessage => { if (Client.IsClosed) { return; } ProcessMessage(new Workload(receivedMessage)); }, new OnMessageOptions { AutoComplete = false, MaxConcurrentCall...
wntrsux

View additional questions