Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@acuris/eventstore-s3

Package Overview
Dependencies
Maintainers
3
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acuris/eventstore-s3

Eventstore implementation storing events in S3

  • 2.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

S3 Event store implementation

Very simplistic system to store events on S3

S3EventSource - Individual objects

This stores events one-per-object

const eventSource = new S3EventSource({
 s3: s3client, // optional
 bucket: "s3-bucket-name",
 prefix: "taxonomy/" // optional
})

S3PackedEventSource - Single ZIP file

This reads (only) events cached in a ZIP file

const eventSource = new S3PackedEventSource({
 s3: s3client, // optional
 bucket: "s3-bucket-name",
 prefix: "taxonomy/events.zip" // optional
})

This event source should be closed to clean up temporary files after use.

S3PackSequenceEventSource - Sequence of ZIP files

This reads events cached in a sequence of ZIP files, and permits writing through a batch interface.

const eventSource = new S3PackSequenceEventSource({
 s3: s3client, // optional
 bucket: "s3-bucket-name",
 prefix: "taxonomy/" // optional
})
await useBatchWriter(eventSource.batchWriter, async writer => {
  await writer.writeEvent({category: "example", id: "12345"}, [{data: true}])
  await writer.flush()
})

Tests

Running the tests requires that the default AWS credentials be able to write to a bucket called "s3-eventstore-testing". This is set up for DevTeam-InfraLogic in inframationdev.

Keywords

FAQs

Package last updated on 09 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc