microservices

java.sql.SQLFeatureNotSupportedException: Method org.postgresql.jdbc4.Jdbc4Connection.isValid(int) is not yet implemented. in Spring Boot

為{幸葍}努か 提交于 2019-12-22 12:23:12
问题 I am developing Spring Boot Microservices example. In this example, I used config-server and licensing-service and deployed successfully on docker . When I call the REST endpoint : http://localhost:8080/v1/organizations/1/licenses, I got the below error. To solve this error, I went through many links already, but none of the solutions worked for me yet. The refer links : I have taken actual code reference from : https://github.com/carnellj/spmia-chapter3 Method org.postgresql.jdbc4

Getting error while connecting to jpa using micronaut-data-hibernate-jpa library

你说的曾经没有我的故事 提交于 2019-12-22 08:53:08
问题 I want to use JPA for micronaut. For that I am using io.micronaut.data:micronaut-data-hibernate-jpa:1.0.0.M1 library. Whenever I run my application and hit the endpoint to get the data, I get the following error: { message: "Internal Server Error: No backing RepositoryOperations configured for repository. Check your configuration and try again" } I tried looking up for errors but I couldn't find one. Attaching my files here. Please help. build.gradle plugins { id "net.ltgt.apt-eclipse"

Microservices - RestTemplate UnknownHostException

折月煮酒 提交于 2019-12-22 08:23:02
问题 I have a simple setup with a Eureka service registration server, a service for the public API and a service that gets called from the public API using RestTemplate. Eureka tells me that the services are successfully registered, but when I call the service @Service public class MyServiceService { @Autowired private RestTemplate restTemplate; private final String serviceUrl; public MyServiceService() { this.serviceUrl = "http://MY-SERVICE"; } public Map<String, String> getTest() { Map<String,

DDD. Shared kernel? Or pure event-driven microservices?

寵の児 提交于 2019-12-22 07:59:10
问题 I'm breaking my system into (at least) two bounded-contexts: study-design and survey-planning. There's a concept named "subject" (potential subject for interviewing) in the study-design context. We also maintain associations between subjects and populations in that domain. Now, in the survey-planning, we also need (some) information about the subject (for example: for planning a visit, or even for anticipated selection of questionnaire, in case the population the subject belongs to is known

How to deal with shared models in micro service architectures

ぐ巨炮叔叔 提交于 2019-12-22 04:38:23
问题 My goal is to create an architecture in which services should be able to deploy independent of each other and are completely autonomous, but what do you do when you have 2 services that reads from DB the same object type? In my case I have a socket server (micro service 1) and a http server (micro service 2). Using the http server my users creates an asset called: A, this asset gets stored on a DB and a mongoID is returned. Then, using another protocol and the ID, there are calls to the

Why shared libraries between microservices are bad?

二次信任 提交于 2019-12-22 04:35:07
问题 Sam Newman states in his book Building Microservices The evils of too much coupling between services are far worse than the problems caused by code duplication I just don't understand how the shared code between the services is evil. Does the author mean the service boundaries themselves are poorly designed if a need for a shared library emerges, or does he really mean I should duplicate the code in the case of common business logic dependency? I don't see what that solves. Let's say I have a

Cloud config got Request execution error. endpoint=DefaultEndpoint{ serviceUrl='http://localhost:8761/} from Eureka server

喜夏-厌秋 提交于 2019-12-22 00:24:13
问题 I'm trying to implement Discovery First Bootstrap way for my 4 micro-services. First is a config server that takes config from git, and second is an Eureka server. When i'm running docker-compose up my config server is not able to register with eureka. I've got: Request execution error. endpoint=DefaultEndpoint{ serviceUrl='http://localhost:8761/} Connection refused My config server @EnableConfigServer @EnableEurekaClient @SpringBootApplication public class ConfigServerApplication { public

Does Kong support API Aggregation

a 夏天 提交于 2019-12-21 17:57:26
问题 We are just researching a couple of API gateways, in particular Kong. Looking through their documentation it seems they support request/response transformation. However, if I understand this correctly, this seems limited to headers. Does Kong support API Aggregation like Netflix does it? 回答1: No, by default one http request into Kong will only match to one upstream url. The Kong request and response transformation plugins handle simple Header, Body and Query String manipulation but Kong doesn

Does Kong support API Aggregation

£可爱£侵袭症+ 提交于 2019-12-21 17:57:02
问题 We are just researching a couple of API gateways, in particular Kong. Looking through their documentation it seems they support request/response transformation. However, if I understand this correctly, this seems limited to headers. Does Kong support API Aggregation like Netflix does it? 回答1: No, by default one http request into Kong will only match to one upstream url. The Kong request and response transformation plugins handle simple Header, Body and Query String manipulation but Kong doesn

Microservice data replication patterns

﹥>﹥吖頭↗ 提交于 2019-12-21 17:53:20
问题 In a microservice architecture, we usually have two ways to communicate 2 microservices. Let’s say service A needs to get information from service B. The first option is an remote call, usually synchronous over HTTPS, so service A query an API hosted by service B. The second option is adopting an event-driven architecture, where the state of service B can be published and consumed by service A in asynchronous way. Using this model, the service A can update its own database with the