Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Create a generic batching mechanism for Adapters #849

Closed
ZackButcher opened this issue Jun 28, 2017 · 2 comments
Closed

Create a generic batching mechanism for Adapters #849

ZackButcher opened this issue Jun 28, 2017 · 2 comments

Comments

@ZackButcher
Copy link
Contributor

Batching is a common requirement among many adapters. The Mixer should provide tools to make it easy for adapter authors to implement batching. So far we've been careful to design the interfaces exposed to adapters to make them amenable to batching, it's likely we can implement batching in a way transparent to adapters.

@douglas-reid
Copy link
Contributor

douglas-reid commented Jun 29, 2017

I think the implementation will be the easy part. The tricky part may be getting the right config story.

For instance, should we have something like:

handlers:
- name: batchedMetrics
  adapter: batcher
  params:
    handler: myMetrics
    period: 1s
    maxSize: 100MB
- name: myMetrics
  adapter: statsd
  params:
    ipAddr: 10.10.10.10:2343

actions:
- handler: batchedMetrics
  instances:
  - request_count
  - request_duration

@geeknoid
Copy link
Contributor

Covered by #1475

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants