2.2.1 • Published 2 years ago

@acuris/eventstore-s3 v2.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

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.

2.2.1

2 years ago

2.2.0

2 years ago

2.0.7

2 years ago

2.1.0

2 years ago

2.0.3

3 years ago

2.0.6

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.20

3 years ago

1.3.19

3 years ago

1.3.17

3 years ago

1.3.18

3 years ago

1.3.16

3 years ago

1.3.15

4 years ago

1.3.14

4 years ago

1.3.13

4 years ago

1.3.12

4 years ago

1.3.11

4 years ago

1.3.10

4 years ago

1.3.8

4 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.1.16

4 years ago

1.1.15

4 years ago

1.1.14

4 years ago

1.1.13

4 years ago

1.1.12

4 years ago

1.1.11

4 years ago

1.1.9

4 years ago

1.1.10

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago