Ask a design question, can the app backend interface and the operator backend interface share logical business services?

for example, they all operate on user data, on order data. App also needs to add, delete, change and check, and the operation backend also needs to add, delete, change and check the interface. Can this set of service services be shared by all, or can they be split into two micro-service systems?

Mar.14,2021

try to keep the coupling as low as possible to avoid pulling one to start the whole body. Abstract the public method parent class, background and append extension and rewrite as much as possible.


abstract all common operations into generic classes in the common project, and other projects can reuse code. (it's flexible to write two sets of the same code, but it's tiring to write two sets of the same code. )


is it guaranteed to be the same all the time? Personal opinions are still separate and convenient to maintain

Menu