# Guest Post: Developing a Serverless Scheduler Using DynamoDB TTL and Filtered Streams

DevFeed: [Guest Post: Developing a Serverless Scheduler Using DynamoDB TTL and Filtered Streams](<https://devfeed.tech/articles/guest-post-developing-a-serverless-scheduler-using-dynamodb-ttl-and-filtered-streams-14210.md>)

Original publisher: [Read original article](<https://www.serverless.com/blog/guest-post-developing-a-serverless-scheduler-using-dynamodb-ttl-and-filtered-streams>)

Author: Frédéric Barthelet

Published: 2021-12-21T00:00:00Z

Content type: tutorial

Language: en

Sources: [Serverless Blog](<https://devfeed.tech/sources/serverless-blog.md>)

Topics: [Serverless](<https://devfeed.tech/topics/serverless.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [serverless framework](<https://devfeed.tech/topics/serverless-framework.md>), [Streams](<https://devfeed.tech/topics/streams.md>), [Amazon Simple Queue Service (SQS)](<https://devfeed.tech/topics/amazon-simple-queue-service-sqs.md>)

Tags: [aws](<https://devfeed.tech/tags/aws.md>), [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [cloud-computing](<https://devfeed.tech/tags/cloud-computing.md>), [deep-dive](<https://devfeed.tech/tags/deep-dive.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [faas](<https://devfeed.tech/tags/faas.md>), [function-as-a-service](<https://devfeed.tech/tags/function-as-a-service.md>), [guest-post](<https://devfeed.tech/tags/guest-post.md>), [infrastructure-as-code](<https://devfeed.tech/tags/infrastructure-as-code.md>), [new-feature](<https://devfeed.tech/tags/new-feature.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [serverless-architecture](<https://devfeed.tech/tags/serverless-architecture.md>), [serverless-framework](<https://devfeed.tech/tags/serverless-framework.md>), [sqs](<https://devfeed.tech/tags/sqs.md>), [streams](<https://devfeed.tech/tags/streams.md>)

## AI overview

This guest post explains AWS Lambda event filtering and describes how Serverless Framework supports filtering for stream and SQS event types through the filterPatterns option. It presents a serverless scheduler example involving DynamoDB TTL and filtered streams.

## Source excerpt

AWS announced Lambda event filtering during re:Invent 2021. This new feature helps reduce the quantity of Lambda's invocation to exactly match your requirements and possibly save on costs. We'll deep dive into a specific example in this article. We're happy to announce that Serverless Framework now supports event filtering for both `stream` and `sqs` event types via the new `filterPatterns` option