Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

streaming interfaces #216

Open
mikedewar opened this issue Dec 28, 2015 · 11 comments
Open

streaming interfaces #216

mikedewar opened this issue Dec 28, 2015 · 11 comments
Assignees
Milestone

Comments

@mikedewar
Copy link
Collaborator

Build interfaces for:

  • SQS
  • Kinesis
  • Kafka
  • RabbitMQ
  • DBus

any others? Ignore any of the above?

@nikhan
Copy link
Contributor

nikhan commented Dec 28, 2015

Always down for more but I think Rabbit should be at the top of the list. I don't know anything about Kinesis, Kafka, DBus.

@mikedewar
Copy link
Collaborator Author

  • Sources: any block that isn't a regular block
  • Store: an in-memory store, that needs to be locked
  • Interface: an interface onto an external streaming service

@mikedewar
Copy link
Collaborator Author

Source can:

  • GetType()

Interface can:

  • Serve()
  • Stop()

Store can:

  • Lock()
  • Unlock()
  • Get()
  • Set()

@mikedewar
Copy link
Collaborator Author

I'd love to ditch Get and Set - is there a good reason the API needs the generic access afforded by these methods?

@nikhan
Copy link
Contributor

nikhan commented Dec 29, 2015

the reason you can get and set is if you want to populate a store with a predefined value conveniently... like for instance, lets say you have a dictionary of country codes on to country names... or a set of precalculated weights or something.

er, what are the reasons to get rid of them?

@mikedewar
Copy link
Collaborator Author

feels like they should be done "in" streamtools, rather than through the API. A one-off read of a country-code JSON should be achievable directly...

@nikhan
Copy link
Contributor

nikhan commented Dec 29, 2015

ok, how does one load a store?

@mikedewar
Copy link
Collaborator Author

so I mean - it feels like something that should be able to be done in streamtools directly, with maybe a file-stream interface that pushes its contents line by line upon connect. It's not doable right now.

@mikedewar
Copy link
Collaborator Author

actually (and this is OT now) this could be pretty powerful in the Unix's right? FileConnect specifies a path, receive dumps the file then acts like tail -f, and I guess send appends? Then you'd be able to connect to anything that portrays itself as a Unix file thinger including, I think /dev/stdout?

So I guess I want to add

  • files

to the list above.

@mikedewar
Copy link
Collaborator Author

also I guess we should have a disconnect block.

@mikedewar mikedewar modified the milestone: Release v0 Jan 6, 2016
@mikedewar mikedewar self-assigned this Jan 6, 2016
@AKAMEDIASYSTEM
Copy link
Collaborator

uh

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

No branches or pull requests

3 participants