4 votes
Accepted

Microservice replica sync

First off, no your microservice shouldn't have a copy of another microservices data. Each microservice should only have its own data and make calls out to other apis if required. Although the design ...
  • 65.4k
2 votes

How to separate UI and business logic when they are intertwined by design

It sounds like you need some events in your new business logic. Before any UI part calls joinChat it can subscribe to the relevant events. During the execution of joinChat, which would entail multiple ...
  • 16.4k
2 votes
Accepted

How to separate UI and business logic when they are intertwined by design

First, I would like to point out, that your observations are "valid". When I made similar observations back in the day (it was Java Enterprise applications for me) people wanted to talk me ...
2 votes

How to design an ever evolving entity while offering backward compatibility

Version the data. How you store the object, relational db, one table, many tables, no-sql, whatever doesn't matter so much as whether you store the version of the object with that data. For example, ...
  • 65.4k
2 votes
Accepted

Is websocket connection a driving adapter or driven adapter in hexagonal architecture

There is no problem. It is okay that the web socket service is both driving and driven. Let's see an example. You have a web shop where backend and frontend communicate via web socket. When the user ...
  • 1,707
2 votes
Accepted

Loose Coupling Presenter to View in MVP

Occam's razor says I need arguments to use decoupling, and testing doesn't seem to be one of them. Why should we use a decoupled model and pay the price for it? MVVM imposes the (artificial) ...
1 vote

How to integrate a Python server with Kafka?

I've done this in the past using Celery. I also used Celery Flower for this app as it's great for monitoring the Celery tasks. You basically create a scheduled Celery task to consume your desired ...
1 vote
Accepted

Why do HTML and JS feel slow on smartphones? What could be changed to make them faster?

It's not really to do with HTML itself, and especially not XHTML, but four things: the document layout is dynamically computed at runtime based on the size of the device viewport. the attributes (...
  • 9,428
1 vote

How can message queues improve scalability?

And for granular scalability, any microservice based architecture can scale individual services independently to achieve the same right ? Am I missing something here ? Right, you aren't missing ...
  • 149
1 vote

What should presenters return in Clean Architecture?

I find all answers pretty neat since I was doing exactly what you are telling. I do have some other considerations though the code you presented to have multiple output ports, bothers me since you ...
  • 11
1 vote

Handle localization in microservices architecture

Do not store the translations in multiple locations without some automated way to get them into those locations. Provide a single place for them to be edited. How or if they get cached on their way to ...

Only top scored, non community-wiki answers of a minimum length are eligible