New answers tagged architecture
0
votes
What is the computational overhead when running a relational database in several docker services instead of a single instance?
You should not use the docker for the database. It is to difficult to handle and brings too much overhead - computational and administration.
Maybe if you have a lot of ram it can work with docker. If ...
1
vote
Is this the right mechanism for 2 way heartbeat?
Leveraging work I did with a custom UDP interface, there's a few properties regarding liveness checking you need to keep in mind:
Timeout means the other system is unreachable
Active refusal means it'...
0
votes
Is Kafka a good idea for connecting a REST API with Worker which runs large computations per job in a queue?
I guess my ideas for a design would depend on the requirements, functional or otherwise.
For example, on how scalable this solution really needs to be. Would a single non-scalable solution actually ...
0
votes
Is Kafka a good idea for connecting a REST API with Worker which runs large computations per job in a queue?
You have correctly identified a big inefficiency:
External service B requests every N seconds
Any kind of long polling or continuous polling is bound to be inefficient if the normal duration of the ...
2
votes
Accepted
Are microservices unfit for our domain logic
Nothing here seems fundamentally incompatible with microservices. Sure, you've got lots of business logic but the architecture doesn't affect that.
All work times and absence items after the ...
0
votes
Designing a Feed and Notification system in MongoDB
My biggest doubt about this structure is: How would I return all this
data to my Android app. Is it correct to return a JSON with the
notification unpopulated (only ID's), and the Android app would ...
2
votes
Implementing a text adventure using a deque filled in by procedures
It seems like a bad design.
The rooms will need state
All rooms are going to share some functions, say "turn on light"
There will be actions to take independent of the room. "fight ...
1
vote
Is it OK to create an Entity Framework DataContext object and dispose it in a using block in each of my CRUD methods?
You probably don't need to, but that doesnt mean you should never.
There is a lot of advice, around the internet, and in the top rated post on this page, telling you that you "Must Not" ...
2
votes
PDF service: using a REST API in front of queue vs publishing director to queue
If you haven't identified an actual need for REST or any other middle layer then why build it?
If it turns out you do need one then add it on. Chances are if you build it now you won't have thought of ...
0
votes
Should domain know about exceptions thrown from outer layer?
Let's take a hypothetical system, a state based, exceptions thrown from persistence layer or other outer layer, should propagate to ui layer through domain layer. Domain need not know about this ...
2
votes
Should domain know about exceptions thrown from outer layer?
If you‘re using concentric architecture models such as hexagonal architecture, onion architecture or clean architecture, the inner cores (e.g model) should not depend on outer cores.
However, ...
2
votes
What are the best practices in public API vs internal only API being on the same service
You want an API gateway. This gives you a tool that can expose APIs to the public using any url you want and have the functionality where it already existed. The gateway is responsible for auth of ...
4
votes
Microservices that needs to change row in shared DB
I'd simply use the request-response pattern here:
a saves job to database and sends the jobs to the queue
b and c process the request and send their result or "finished" message back to a
a ...
0
votes
Synchronous vs Asynchronous Event Driven Architecture
For some code to be asynchronous with respect to some other code, it will make arrangements for the other code to run, but then be able to do other things, whilst:
having no further interaction with ...
6
votes
Microservices that needs to change row in shared DB
Am i really left with only option - make app A expose rest API and call the endpoint from app B and C to update the row in DB?
If you're doing microservices properly, yes. Don't forget to version the ...
0
votes
Where does non-MVVM code belong in an MVVM app?
Simply put, from the perspective of MVVM everything except your view and view model are part of the model layer. How you organize this model layer is up to you.
0
votes
Microservices - create post for logged in user
One of the core principles about microservices is that they are independently deploy-able. There are additional disciplines that are required to make that a reality, but let's restate the ...
1
vote
Microservices - create post for logged in user
I'm assuming you are using JWTs for authentication. You can store userId, username and email in the JWT. However, you will need to have user data from user service.
The one to one relationship is ...
Top 50 recent answers are included
Related Tags
architecture × 3311design × 747
design-patterns × 425
c# × 260
microservices × 234
domain-driven-design × 203
java × 194
database × 169
architectural-patterns × 161
object-oriented × 145
enterprise-architecture × 144
rest × 118
web-applications × 111
.net × 106
web-development × 103
api × 98
object-oriented-design × 94
mvc × 93
database-design × 84
javascript × 73
api-design × 71
web-services × 66
programming-practices × 64
asp.net × 58
python × 57