microservices

Using Meteor Cluster for microservice

非 Y 不嫁゛ 提交于 2020-01-06 11:45:40
问题 Based on the simple implementation of Meteor Cluster MicroServices the doc I have this implementation for 2 services to communicate. AppUI export default CLUSTER_DISCOVERY_URL="mongodb://localhost:3000/meteor"; Cluster.connect(CLUSTER_DISCOVERY_URL); Cluster.register('appui_service'); loggerService = Cluster.discoverConnection('logger_service'); LoggerService export default CLUSTER_DISCOVERY_URL="mongodb://localhost:3300/meteor"; Cluster.connect(CLUSTER_DISCOVERY_URL); Cluster.register(

Adding Data from UI to different microservices

依然范特西╮ 提交于 2020-01-06 07:58:13
问题 Imagine you have a user registration form, where you fill in the form: First Name, Last Name, Age, Address, Prefered way of communication: Sms, Email (radiobuttons). You have 2 microservices: UserManagement service Communication service When user is registered we should create 2 aggregates in 2 services: User in UserManagementContext and UserCommunicationSettings in Communication. There are three ways I could think of achieving this: Perform 2 different requests from UI. What if one of them

no restriction for refresh token lifetime span in identity server 4

僤鯓⒐⒋嵵緔 提交于 2020-01-06 06:01:26
问题 I used microservices, Currently am using JWT access token to access. But access token epired with certain time. To overcome this scenario I implemented refresh token to renew the expired access token. Now I want to implement no restriction for refresh token's lifetime span. How to achieve this? Note: Am using Identity server 4 for JWT token generation 回答1: Looking into the code, validating refresh token lifetime, I see there just return (now > creationTime.AddSeconds(lifetime)); So the answer

no restriction for refresh token lifetime span in identity server 4

半世苍凉 提交于 2020-01-06 06:01:08
问题 I used microservices, Currently am using JWT access token to access. But access token epired with certain time. To overcome this scenario I implemented refresh token to renew the expired access token. Now I want to implement no restriction for refresh token's lifetime span. How to achieve this? Note: Am using Identity server 4 for JWT token generation 回答1: Looking into the code, validating refresh token lifetime, I see there just return (now > creationTime.AddSeconds(lifetime)); So the answer

is putting sqs-consumer to detect receiveMessage event in sqs scalable

耗尽温柔 提交于 2020-01-06 05:30:51
问题 I am using aws sqs as message queue. After sqs.sendMessage sends the data , I want to detect sqs.receiveMessage via either infinite loop or event triggering in scalable way. Then I came accross sqs-consumer to handle sqs.receiveMessage events, the moment it receives the messages. But I was wondering , is it the most suitable way to handle message passing between microservices or is there any other better way to handle this thing? 回答1: I had written the code in java for fetching the data from

Select micro services vs library as dependency?

╄→гoц情女王★ 提交于 2020-01-06 02:12:06
问题 I have two modules(mod1 with DB1 and mod2 with DB2) hosted as microservices. Both modules have some common functionality which can interact with DB1 and DB2 both. Approach_1:- Make another mod3 as shared library jar for common component and inject it in both modules to avoid duplication of code Approach_2:- Make another micro service for common component instead of shared library jar. Not sure which approach is better in term of design and what criteria I need to consider here? Per my

How to implement microservices architecture with docker compose?

﹥>﹥吖頭↗ 提交于 2020-01-05 21:11:12
问题 I am working on a web application that requires few microservices like a URL shorter, mailer, analytics, etc... Each of these services are implemented as REST api so they can talk to each other. Each of these services have a docker-compose.yml file and use containers like nginx, php, mysql, etc… I want these to work as a single system. I don’t want to expose these REST apis to anyone outside of the docker network My question is how can I combine multiple docker-compose.yml files from each

How to achieve orchestration with spring boot micro service? [closed]

左心房为你撑大大i 提交于 2020-01-05 07:57:00
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . what is best way to orchestrate micro services in spring boot. 回答1: You have many options but I will list 3 of them that I would choose from: Directly call the other microservice using REST calls (hard code the URL in a property file or create a service for inter service

How to achieve orchestration with spring boot micro service? [closed]

谁说我不能喝 提交于 2020-01-05 07:56:53
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . what is best way to orchestrate micro services in spring boot. 回答1: You have many options but I will list 3 of them that I would choose from: Directly call the other microservice using REST calls (hard code the URL in a property file or create a service for inter service

database design of microservice [closed]

断了今生、忘了曾经 提交于 2020-01-05 07:09:10
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 18 days ago . I would like to know about the database design of microservice. The scenario is given below Microservice A is using mysql database. If I am creating multiple instance of microservice A: Each microservice A should point to the same database (common database for all instances) or Each microservice A