airbnb / binaryalert

BinaryAlert: Serverless, Real-time & Retroactive Malware Detection.
https://binaryalert.io
Apache License 2.0
1.4k stars 187 forks source link

Use an SQS queue for the downloader; generalize dispatcher #112

Closed austinbyers closed 6 years ago

austinbyers commented 6 years ago

to: @chunyong-lin cc: @ryandeivert @airbnb/binaryalert-maintainers size: large resolves #20

Background

The CarbonBlack downloader Lambda function can time out fairly frequently while waiting for the Response server. Even with Lambda's automatic retries, it's possible to completely lose data. To improve the reliability of the downloader, events can now be directed to a queue instead of to the downloader directly.

For example, if StreamAlert is used to notify the BinaryAlert downloader Lambda, now it can instead publish to the BinaryAlert downloader queue.

Changes

Terraform and CLI

Lambda Functions

CI Improvements

Testing

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.0002%) to 93.017% when pulling c5d5464d768b162c33f6e594a4714b1d932d80fe on austin-generic-dispatcher into ff6bdb3d99a0ba8a9187b42bcfe1f97cdf604c59 on master.

jacknagz commented 6 years ago

👍