- Notifications
You must be signed in to change notification settings - Fork 818
Closed
Description
Refactor
Component(s) to be refactored
- AWS version lambda
Explanation
The AWS lambda is violating the single responsibility principle by doing at least 3 different things:
- Comparing versions to see if there's a newer version
- Calculating download URLs
- Collecting data for analytics
This lambda needs to stay in place for a while in order to support v1.13.0. On develop, we can begin to replace it with more cohesive components.
Use serverless compute, FaaS, or similar Linode services to serve the latest version and download link. It should accept a deployment type and respond with the latest available version and a link to the download.
Update
Linode doesn't offer any service similar to AWS Lambda. We'll just build a new lambda with a single focus. The tasks have been updated accordingly.
Tasks
- Identify the appropriate Linode service to serve the latest version and download link (0d)
- Implement a new AWS Lambda that accepts a deployment and responds with the latest version and a download link (0d) -@VakarisZ
- Modify the
Versionobject to query the new AWS lambda (0d) - Add an asynchronous call to the old lambda on Island boot so that analytics continue to be collected (0d)
- Update the FAQ (0d)
Reactions are currently unavailable