At my new work, a few people want to share modules between systems/apps, and I'm a bit skeptical about it.
So the idea was to create a shared "export module" that every system/app could use.
The new workflow is that they want to create is:
- scrape/process the data
- store this info in the db (make sense to me)
- then with a unique module create the "output" that right now every app is creating at their own.
The last part is where I'm insecure, the part where a unique (maybe nodeJS) module tries to get right output for different system with different business logic, for example some scrapers create a file with the last Monday from the week in the name, another one just create a csv file with "today" in the name.
Is possible to share a module at that point, or is it better if every app is independent and atomic?
Summary: two options
1) Multiple systems in different languages store the data in the db then a unique module create the output from them
2) Every system with his "own" library to export to csv, to excel, etc... as needed? (still saving the data in the db)