I need to update MongoDB database from multiple files.
Pre-conditions:
Environment - AWS
File storage - AWS S3
Database - MongoDB
Number of files - 100-500 (approximately)
Total amount of data - 20-30 megabytes
An important requirement is that data must be validated before being saved to the database.
Validation can be as simple as checking if a field exists. Or more complex - if there are relationship between entities, then you need to check all the entities that can be in different files.
The number of files and the amount of data does not seem very large to me. A possible rough solution would be to load all the data into memory, perform validation, and then store it in the database. There are no memory or performance limits.
Perhaps one of you has solved a similar problem?