Translations:NPM module - izara-middleware/82/en: Difference between revisions
Jump to navigation
Jump to search
(Importing a new version from external source) |
(No difference)
|
Latest revision as of 04:33, 4 October 2022
- If have trouble managing promises to be awaited before Lambda returns, could add a new middleware where we register promises and await them all in the after middleware before returning
- Promise middleware could be a global class like CorrelationIds, maybe store both the promise and some other info, eg a tag in-case the promise rejects so we can log it
- AWS has maximum 10 message attributes so will need to be careful about this, might need to combine correlation ids into a serialized object but might hit limit for length of one attribute?