I’m working on Spring Boot project based on microservices architecture on backend and Vue.js on frontend. Structure of my project is next: For avoiding CORS error usually I add @CrossOrigin annotation on to class and it works. It was all good and has been working well, until I added security part with ability to login users. What did I did:
Design pattern for Java Spring data JPA projects [closed]
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 9 months ago. Improve this question This is my current project design Controller-> service -> Repository I am trying to understand : What layer(Name) i can
Spring Cloud Contract: how to prevent Producer to break consumers?
I am new to Spring Cloud Contracts and recently I was able to generate Producer contracts, and write a test on the consumer side using the stubs installed on my local maven repo. If I break the contract on the Producer side and then install the new stubs, as expected if I run the consumer tests it will fail. But
Can I use Azure Event Grid topics to communicate domain events in a microservice architecture?
I am confused. When comparing the messages services offered by Microsoft Azure, we can choose between: Event Grid Event Hubs Service Bus (Azure Cache for Redis) This link gives the following comparison: Now I’d like to write a microservice application consisting of several components. Each component should communicate local domain events to a topic (pub/sub). This could be achieved by
How to avoid duplicate code in Java when you require the same class in two separated applications?
For the sake of simplicity, let’s say that I have a class named “Dog”. Then I have two separated applications containing implementations of that class. Application “A” does something with the Dog class. Application “B” does another something with the Dog class. Both applications require the Dog class, hence it would be duplicated. Now let’s say for a moment that:
how can i differentiate between scheduled call and HTTP call of the same function in java?
i have a get function in my microservice which essentially fetchs data from a database. this function is running as a scheduler (cron job) and also as an api end point which can be triggered from the UI. i want to add some logic inside getData() which will only be executed when it is being triggered by the scheduler and
Executing multiple java process on same VisualCode workspace
I have three springboot app in a visual Studio code workspace. All three configured to run on unique port.Is it possible to start all three springboot service on the same workspace? Earlier I have seen options where one can select the select the terminals for each process. Anysuggestion would be of great help. Answer You can create a launch.json and
How to access gRPC server in matlab?
We have moved our DataAccess logic to Microservice and it is currently implemented as gRPC with C++ and we are able to utilize that in C# client and C++ client. Now we have to make use of this DataAccess grpc in Matlab client(legacy). So, i’m trying to find a way to access gRPC from Matlab and found that there is
How to avoid escaping /n on each microservice in the chain? Java
For example, we are getting a json message like this from our partner: The partner wants the client to receive the message like this (without newline but with n) But we have a chain of microservices in our ecosystem and that json goes through 4 or 5 microservices which proccesing it before client can get it. So, our partner should
How to handle synchronous responses with Spring Cloud Data Flow
We are in the process of designing the migration of our monolithic Java application to microservices to meet various client requirements such as scalability, high availability, etc. The core function of our application is data processing, i.e. retrieve data from a source, put it through 0 or more transformations, and finally push the result to a destination. For this reason,