microservices

How to authenticate JSON web tokens (JWT) across different APIs?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 17:27:33
问题 I've created a Rest API based on the PHP Slim framework which uses JSON Web Tokens (JWT) to authenticate and authorize access. To use the API the client must first authenticate themselves by sending their credentials to a special /auth/token route which if correct, returns a digitally signed token containing a list of allowed permissions. All subsequent requests to the API require the token for authentication and authorization. This is pretty standard stuff and works well. But now I now want

Maven archetype to create Micro Service application [closed]

巧了我就是萌 提交于 2019-12-23 13:14:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Is there such Maven Archetype that create multi module Maven project structure for Micro Service application? I want to get a Rest API skeleton based on Spring Boot and Docker. 来源: https://stackoverflow.com/questions/39784719/maven-archetype-to-create-micro-service-application

Database location in Microservices Architecture

雨燕双飞 提交于 2019-12-23 11:45:15
问题 We have a monolithic application which we are now converting to microservice architecture using containers. Our microservices are stateful (i.e they need to insert/retrieve data from db). As per microservice architecture, each microservice should have its own data (i.e database in our case). My question is that where the database of each microservice should be deployed, whether it should be in the same host in which the microservice is deployed, in the same container in which the microservice

Can I use ZeroMQ sockets to change communication mechanism between two microservices that use REST?

我的梦境 提交于 2019-12-23 05:28:10
问题 How can we transform cleanly a communication based on HTTP API --> to a message communication using ZMQ library ? 回答1: In case you indeed want to do so, one may design a kind of Mediator, using ZeroMQ tools. ZeroMQ has a set of multi-level abstractions, where AccessPoints, typically have a certain "behaviour" ( a distributed behaviour ) they perform among themselves. Your indicated target aims at using no such behaviour, but to have some sort of transparent, (almost) wire-level handling of

linking Microservices and allowing for one to be unavailable

寵の児 提交于 2019-12-23 05:22:20
问题 I'm new to the microservices architecture and am seeing that it is possible under the model to call a microservice from another via HTTP request. However, I am reading that if a service is down all other services should still operate. My question is, how is this generally achieved? Example, a microservice that handles all Car record manipulation may need access to the service which handles the Vehicle data. How can the Car Microservice complete it's operations if that service is down or doesn

Synchronize writes to DB from dynamically scaled microservices

末鹿安然 提交于 2019-12-23 05:14:40
问题 Background with example: We are building a stream processing application that receives a stream of data, runs algorithms on the data and stores the results in a database. As an example for this question let's use a stream of purchases. Each purchase has the geo-location of the purchase (store location or IP based location). The stream of purchases is coming from a Kafka topic. We now want to process that stream of data and output some statistics. For example, we want to see the average

Service Fabric - How to reserve or protect my hardcoded Port

房东的猫 提交于 2019-12-23 05:14:10
问题 Landscape: We have an Application with two micro services. Micro Service A is used to expose the application outside the cluster (our web server) Micro Service B is our business functionality. We have an F5 in front of Micro Service A to handle the load balancing over the hard coded Ports(onPrem). Inside Micro Service A we are hard coding specific ports for the http endpoint in the manifest. Problem: We witness it is possible that sometimes Micro Service B (Business functionality) will steal

Error creating bean with name 'eurekaInstanceConfigBean': Singleton bean creation not allowed while singletons of this factory are in destruction

这一生的挚爱 提交于 2019-12-23 04:55:22
问题 This question is extension of Working With Eureka Clients Programmatically issue - Completed shut down of DiscoveryClient. On my windows machine JAVA_HOME and PATH both versions where different. I just corrected it and now its showing me below error. Error: Invocation of destroy method failed on bean with name 'scopedTarget.eurekaClient': org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'eurekaInstanceConfigBean': Singleton bean creation not

Microservices Architecture for highly frequent data access; in memory solutions?

不羁的心 提交于 2019-12-23 04:28:51
问题 let us define the following use case : There has to be a simulation task fulfilled, which involves an iteration/simulation over [ day1, day2, ..., dayN ]. Every step of the iteration depends on the prior step, so the order is predefined. The task has a state represented by Object1 , this object is going to be changed within every step of the iteration. The step of an iteration involves 2 different tasks: Task1 and Task2 . To fulfill Task1 , data from Database1 is required. For Task2 to be

Micro Services With Docker Compose: Same Container, Multiple Projects

爱⌒轻易说出口 提交于 2019-12-22 18:14:44
问题 Along with a few others, I am having issues using a micro services architecture of applications and employing docker-compose the way I want to. Summary: I have X micro service projects (lets call these project A , project B and project C . Each micro service depends on the same containers (lets call these dependency D and dependency E . The Problem: Ideally, project A , B and C would ALL have both dependencies ( D & E ) in their docker-compose.yml files; however, this becomes an issue as