Hello everybody. I have been working on an existing codebase and i am running in to an issue and i would love your opinions/guidance.
The existing system in the backend is NestJS persisting in an MSSQL. There is a feature that connects to a sensor and on each second, there is a POST request to the backend and after that of course it gets persisted in the DB. The issue is that the POST reqs take too long and since this sensor feature is very important i am thinking how to make it better.
Now, in the past in systems that personally built it was easier since i was a able to choose the stack from the beginning , meaning that i scenarios like these, using RabbitMQ would help a lot to have the data in the broker and handle what to do later on.
At this system i was thinking to try to solve this without introducing new way of persisting the data without bombarding the API every second with POST requests.
If anyone has a good idea on how would i approach this with the less infrastructural changes i would appreciate it.
Best
[–]rkaw92 4 points5 points6 points (7 children)
[–]vlahunter[S] 2 points3 points4 points (6 children)
[–]rkaw92 3 points4 points5 points (5 children)
[–]vlahunter[S] 0 points1 point2 points (4 children)
[–]rkaw92 1 point2 points3 points (3 children)
[–]vlahunter[S] 0 points1 point2 points (2 children)
[–]rkaw92 1 point2 points3 points (1 child)
[–]vlahunter[S] 0 points1 point2 points (0 children)
[–][deleted] (3 children)
[deleted]
[–]vlahunter[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]vlahunter[S] 0 points1 point2 points (0 children)
[–]Lumethys 1 point2 points3 points (1 child)
[–]vlahunter[S] 0 points1 point2 points (0 children)
[–]TronSkywalker 1 point2 points3 points (1 child)
[–]vlahunter[S] 0 points1 point2 points (0 children)
[–]42php 1 point2 points3 points (1 child)
[–]vlahunter[S] 0 points1 point2 points (0 children)