0.15.0 • Published 10 months ago

@flowcore/data-pump v0.15.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Flowcore Data Pump Client

Usage example

import { FlowcoreDataPump } from "@flowcore/data-pump"
import { oidcClient } from "@flowcore/oidc-client"

const oidcClient = oidcClient({
  clientId: "",
  clientSecret: "",
})

const dataPump = FlowcoreDataPump.create({
  auth: {
    getBearerToken: () => oidcClient.getToken().then((token) => token.accessToken),
  },
  dataSource: {
    tenant: "tenant",
    dataCore: "data-core",
    flowType: "data.0",
    eventTypes: ["data.created.0", "data.updated.0", "data.deleted.0"],
  },
  processor: {
    concurrency: 1,
    handler: async (events) => {
      console.log(`Got ${events.length} events`)
      await new Promise((resolve) => setTimeout(resolve, 100))
      return true
    },
  },
  bufferSize: 10_000,
  maxRedeliveryCount: 4,
  achknowledgeTimeoutMs: 10_000,
  logger: console,
})

await dataPump.start((error?: Error) => {
  console.log("Datapump ended with: ", error)
})
0.15.0

10 months ago

0.14.0

10 months ago

0.13.0

11 months ago

0.12.4

11 months ago

0.12.3

11 months ago

0.12.2

11 months ago

0.12.1

11 months ago

0.12.0

11 months ago

0.11.0

11 months ago

0.10.0

11 months ago

0.9.0

11 months ago

0.8.3

12 months ago

0.8.2

12 months ago

0.8.1

12 months ago

0.8.0

12 months ago

0.7.2

12 months ago

0.7.1

12 months ago

0.7.0

12 months ago

0.6.0

12 months ago

0.5.0

12 months ago

0.4.2

12 months ago

0.4.1

12 months ago

0.4.0

12 months ago

0.3.5

12 months ago

0.3.4

12 months ago

0.3.3

12 months ago

0.3.2

12 months ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago