microservices

How To Handle Shared Library Version Bump In a Multi Repo?

有些话、适合烂在心里 提交于 2020-07-23 06:35:15
问题 Little context - today I have a monolith application that I am planning to split into micro-services due to it's growth and the need to partial re-deployments. I'm designing a development process where I have a number micro-services in a multi repo environment (All written in python). There is a one "Foundation" repository that stores ~30 different packages of shared code. Each micro-service is stored in a different repo. The plan to share the code is using a package manager ("private" PyPi)

How To Handle Shared Library Version Bump In a Multi Repo?

随声附和 提交于 2020-07-23 06:33:32
问题 Little context - today I have a monolith application that I am planning to split into micro-services due to it's growth and the need to partial re-deployments. I'm designing a development process where I have a number micro-services in a multi repo environment (All written in python). There is a one "Foundation" repository that stores ~30 different packages of shared code. Each micro-service is stored in a different repo. The plan to share the code is using a package manager ("private" PyPi)

Best practice to share domain model between two microservices

眉间皱痕 提交于 2020-07-09 12:20:47
问题 Are there any best practices or guidelines on how to share the domain model between two micro-services? I have a micro-service (1) which provides end points to interact with a resource (e.g, Order) all CRUD and the other micro-service (2) which performs a specific non CRUD task on the resource (Order). The micro-service (2) almost needs all the order attributes to perform its operation. In this case, does it make sense to create a common shared lib of the domain model and share between the

can vert.x event bus replace the need for Kafka?

巧了我就是萌 提交于 2020-07-05 07:30:11
问题 I am evaluating the vert.x framework to see if I can reduce the Kafka based communications between my microservices developed using spring boot. The question is: Can I replace 1. Kafka with vert.x event bus and 2. spring boot microservices with vert.x based verticles Any pointers will be of great help. Thanks in advance. 回答1: To answer quickly, I would say it depends on your needs. Yes, the eventbus can be a good way to handle natively communication between microservices verticles using an

Do we still need a connection pool for microservices talking HTTP2?

拈花ヽ惹草 提交于 2020-07-03 04:33:21
问题 As HTTP2 supports multiplexing, do we need still a pool of connections for microservice communication? If yes, what are the benefits of having such a pool? Example: Service A => Service B Both the above services have only one instance available. Multiple connections may help overcome OS buffer size limitation for each Connection(Socket)? What else? 回答1: Yes, you still need connection pool in a client contacting a microservice. First, in general it's the server that controls the amount of

Do we still need a connection pool for microservices talking HTTP2?

橙三吉。 提交于 2020-07-03 04:28:17
问题 As HTTP2 supports multiplexing, do we need still a pool of connections for microservice communication? If yes, what are the benefits of having such a pool? Example: Service A => Service B Both the above services have only one instance available. Multiple connections may help overcome OS buffer size limitation for each Connection(Socket)? What else? 回答1: Yes, you still need connection pool in a client contacting a microservice. First, in general it's the server that controls the amount of

C++ MicroServices with desktop application [closed]

自作多情 提交于 2020-06-24 16:42:05
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . Improve this question I got a desktop application and it's getting bigger and bigger. And i wonder if i can make something like microservices with desktop application? I want to application for now stays desktop. Application it's written in C++. I can exclude some of the modules

C++ MicroServices with desktop application [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2020-06-24 16:40:27
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . Improve this question I got a desktop application and it's getting bigger and bigger. And i wonder if i can make something like microservices with desktop application? I want to application for now stays desktop. Application it's written in C++. I can exclude some of the modules

Equivalent of Ihostedservice in asp.net framework for background tasks

五迷三道 提交于 2020-06-24 06:27:33
问题 I have a restful micro service (web api) in .net 4.6.2 and I want to call a fire and forget function each time after certain endpoints are called to do some database cleanup work. I don' want to use Task.Run and I want to have a much reliable dedicated process to do this job. I found lot's of articles and discussions about how to use IhostedService in .net core for long running background tasks. https://docs.microsoft.com/en-us/dotnet/standard/microservices-architecture/multi-container

Partition structure for 2 kafka consumers on same topic

北城余情 提交于 2020-06-17 06:20:26
问题 If I create 2 kafka consumer instances passing same properties subscribe on same topic Will these 2 Consumer instances (at diff group Id), have similar partition structures, or could be different ? i.e, if I do .assignment() will I get same result at both My actual problem statement, where I will be using this validation In my application, I am attaining offset of broker, at a particular state(This is being done through my 1st kafka consumer object). Later, I am creating the 2nd kafka