architecture

Architecture for communication between two microservices

冷暖自知 提交于 2020-01-06 16:19:49
问题 First of all, I'm using JHipster 4.0.x for my project. I'm using microservices architecture. For this example, I've got one gateway, one microservice for "Store" and a second one for "Skill". I want to centralise all Stores in one database and Skills in a second one. Each one is a data repository that will not evolve at the same speed. On the other hand, they will be the central point of my infrastructure in order to update, via an ESB, the other software. Jhipster is great for that, I've got

Architecture for communication between two microservices

青春壹個敷衍的年華 提交于 2020-01-06 16:18:20
问题 First of all, I'm using JHipster 4.0.x for my project. I'm using microservices architecture. For this example, I've got one gateway, one microservice for "Store" and a second one for "Skill". I want to centralise all Stores in one database and Skills in a second one. Each one is a data repository that will not evolve at the same speed. On the other hand, they will be the central point of my infrastructure in order to update, via an ESB, the other software. Jhipster is great for that, I've got

How to organize database layer using NHibernate

一世执手 提交于 2020-01-06 14:15:11
问题 To focus on the question here, we can say that I have one database layer and one application layer. So for the application to get access to the database I have to go through the database layer (of course). Now the thing is that I want to write my queries using LINQ. And I could go two different paths here. One way [A] would be to create about 300 individual functions in the DBLayer, and call them from the Application (eg. GetAllUsers() ). OR [B] the DBLayer could more or less just offer a

Generate simple web site GUI using .net

我们两清 提交于 2020-01-06 11:48:37
问题 I have a couple of super simple databases. Basically they all consist of single tables that saves tracking/logging data etc. Now I want to list this data but I'd like to find a solution that's applicable to all the different tables in all the databses. SO basically I'm looking for some way/some pattern of pointing a solution to a database, generate code and GUI and the publish the site. The tables can have huge amount of rows so I need functionally like paging etc but otherwise a simple list

Understanding how `lw` and `sw` actually work in a MIPS program

十年热恋 提交于 2020-01-06 07:54:36
问题 I'm having bit of a difficulty understanding what sw and lw do in a MIPS program. My understanding of the topic is that we use lw to transfer data from the memory into the register and vice-versa for sw . But how is this exactly accomplished? Let's say we have the following line of code: lw Reg.Dest, Offset(Reg.Source) sw Reg.Source, Offset(Reg.Dest) If we concentrate on lw it's essentially storing the data from the memory, Reg.Source and multiplying the address of that data with the Offset ,

Understanding how `lw` and `sw` actually work in a MIPS program

我只是一个虾纸丫 提交于 2020-01-06 07:54:08
问题 I'm having bit of a difficulty understanding what sw and lw do in a MIPS program. My understanding of the topic is that we use lw to transfer data from the memory into the register and vice-versa for sw . But how is this exactly accomplished? Let's say we have the following line of code: lw Reg.Dest, Offset(Reg.Source) sw Reg.Source, Offset(Reg.Dest) If we concentrate on lw it's essentially storing the data from the memory, Reg.Source and multiplying the address of that data with the Offset ,

Should service call another service or repository directly?

给你一囗甜甜゛ 提交于 2020-01-06 07:13:55
问题 I am creating the WebApplication, with many layers (for now important are Model, Repository, BusinessLayer) Having ClassService, ClassRepository and StudentService, StudentRepository, should ClassServiceMethod call methods from StudentService or StudentRepository? Please provide as many arguments or additional links/blogs/informations as possible :) Thanks in advance. Here is my example code, some generics are added. The question is about GetClassAndBestStudent method: Services - Business

Should service call another service or repository directly?

故事扮演 提交于 2020-01-06 07:13:19
问题 I am creating the WebApplication, with many layers (for now important are Model, Repository, BusinessLayer) Having ClassService, ClassRepository and StudentService, StudentRepository, should ClassServiceMethod call methods from StudentService or StudentRepository? Please provide as many arguments or additional links/blogs/informations as possible :) Thanks in advance. Here is my example code, some generics are added. The question is about GetClassAndBestStudent method: Services - Business

What does it mean and how to fix SonarQube Java issue “Cycles between packages should be removed” (squid:CycleBetweenPackages)

旧时模样 提交于 2020-01-06 02:56:26
问题 Cycles exist between packages when there are dependencies of using or importing kind between classes in these packages. Consider the following example. Let there be 4 classes: Truck and interface Car in org.example.car package and Navigation and CPU in package org.example.part . In packages org.example.car and org.example.part we have use relations between classes Truck --> Car and classes Navigation --> CPU . Let's assume that the class Truck use Navigation class so we have the relationship

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