Fork me on GitHub
#architecture
<
2020-09-08
>
abdullahibra14:09:49

i'm searching for the best architecture to handling data persisted at sql db in REST fashion, but will be some columns in that db which will hold the result of computation which depend on some factors, so that optional columns will have variable data, so update operation will be much, so the design in my mind is: REST API: /add POST ;; adding data /query GET ;; do some computation and update optional columns then return the results, maybe attached to cache layer to make everything faster

abdullahibra14:09:50

maybe i can add kafka here, so query request will get the data from db and push to kafka and computation done by a separate components and publish the results

abdullahibra14:09:07

computation layer will update the columns in the db as well

abdullahibra14:09:32

did anybody face the same situation, and have a better approach for that ?

synthomat14:09:00

leave out any external dependencies if not absolutely required; distributed systems can lead to incredible pain down the road

abdullahibra14:09:58

@synthomat spark, kafka and so on, does that what you meant ?

synthomat14:09:48

yes, that’s what I was referring to; maybe you’re using it already for something else, then please feel free to ignore my advice 😄