8000 add SSM cache invalidation by theburningmonk · Pull Request #190 · middyjs/middy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add SSM cache invalidation #190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 26, 2018
Merged

add SSM cache invalidation #190

merged 7 commits into from
May 26, 2018

Conversation

theburningmonk
Copy link
Contributor
  • support cache invalidation for the SSM middleware
  • refactored the corresponding tests a bit to make it easier to run scenarios that involves multiple invocations

Copy link
Member
@lmammino lmammino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff @theburningmonk, thanks a million for submitting this great improvement.

I have only one comment regarding bluebird. Let me know what you think and then I'd be happy to approve this.

})
}).then(() => {
if (delay) {
return Promise.delay(delay)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we adding bluebird only for this feature (Promise.delay)?

Can't we just do something like the following and get rid of bluebird?

// ...
return new Promise((resolve, reject) => setTimeout(resolve, delay))
// ...

I know this is only for dev mode, but I would prefer to avoid to introduce new libs if they don't bring a substantial value.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure thing

@theburningmonk
Copy link
Contributor Author

@lmammino done, removed the dev dependency on bluebird

@lmammino
Copy link
Member

Awesome :) I will version bump and get this merged shortly. I'll also port these changes to the work in progress 1.0.0 branch!

Thanks again @theburningmonk, great to have you contributing to middy!

@lmammino lmammino merged commit 0a783f0 into middyjs:master May 26, 2018
Copy link
Contributor
@vladholubiev vladholubiev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@theburningmonk
Copy link
Contributor Author

@lmammino no probs, really appreciate the work you're doing with middy!

@lmammino
Copy link
Member
lmammino commented Jun 6, 2018

Thanks @theburningmonk, but it's not just me, lots of fantastic people are contributing every day to this project... I can barely keep up with it! 😛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0