Intern Alex was assigned the task of building a service with the following "requirements". He is struggling and could use some guidance and help with the implementation.
Requirements:
- The service should allow a client to upload a set of files to S3
- Once all files are uploaded, the service should emit an event using EventBridge
- The emitted event must have a reference to all the files the client uploaded in that session
- The service should be able to be run using docker
- The service should support multiple clients simultaneously
- The service should allow clients to upload multiple times / have multiple sessions
- The service should allow a client to upload a set of files to S3
- Once all files are uploaded, the service should emit an event using EventBridge
- The emitted event must have a reference to all the files the client uploaded in that session
- The service should be able to be run using docker
- The service should support multiple clients simultaneously
- The service should allow clients to upload multiple times / have multiple sessions
- Docker will build, but not run correctly. So I can only run this in my local env.
- I'm stuck on how to emit an event w/ a reference only to the files for the client's session.
- I'm not sure how / if I need to differentiate clients and sessions.
- How do I know when a client is done uploading?
- Docker takes a long time to build when I make even small changes to
main.py
.