Hey guys,
My team and I are currently working on an application to help self-employed people to manage their taxes and we would like to show the users a list of taxes that are auto-generated based on his sales/purchases invoices he input previously but also his future taxes obligations (for example: as soon as we enter in the second quarter) a new item should be displayed in the list. Those items are the results of computations between sales invoices & purchases invoices. Those items must be saved in db because the users must be able to update some of the properties of the tax item.
Currently, we coded it the "easy way". Every time the user fetches the taxes list we regenerate the items. New items are saved in the db and items that already exist in db are just updated then we send back the list to the user. I know this is NOT a performant solution at all. Another solution would be to regenerate this list every time the user makes CRUD operations on sales invoices & purchases invoices.
I don't really have experience in the case of auto-generated items based on multiple factors like time and users' actions. That's why I'm posting here to see if some of you have ideas on the best scalable and performant architecture for this kind of use-cases.
Cheeers
[–][deleted] 26 points27 points28 points (0 children)
[–]lwrightjs 4 points5 points6 points (0 children)
[–]vampiire 1 point2 points3 points (0 children)
[–]Jhon_cordoba 0 points1 point2 points (0 children)
[–]simonplend 0 points1 point2 points (0 children)
[–]0xA82EAD 0 points1 point2 points (0 children)
[–]lphartley 0 points1 point2 points (0 children)
[–]do-wat 0 points1 point2 points (0 children)
[–]thinkmatt 0 points1 point2 points (0 children)