I am working on a Rust service that has 2 functionalities:
1- Host Apis
2- Periodically fetch data from a certain endpoint and store in the DB
I am thinking should these be considered mico-services? Should they live in separate work-space?
If they share the same database, I wouldn't split them. You can perfectly have a cronjob as part of the same app, just start the app differently depending on some arguments passed during startup.
Generally you did use a single workspace for a whole project. Note that there is no technical reason for this. It just enables reusing the same Cargo.lock and target directory. It also males it easier to build or test the whole project.