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

Processor annotation #14

Open
FPerezP opened this issue Dec 18, 2017 · 1 comment
Open

Processor annotation #14

FPerezP opened this issue Dec 18, 2017 · 1 comment
Assignees

Comments

@FPerezP
Copy link

FPerezP commented Dec 18, 2017

We want to have a new set of annotations for Kafka processors. It means that annotating a @free trait or abstract class adding the @processor annotation, we will have 2 more available to label our methods:

@publisher: will generate code to allow publishing messages to a specific topic
@subscriber: will start consuming messages.

Example:

  object processor {

    @free
    @processor
    trait FreesKafkaProcessor {

      @publisher("topic") def objectDispatcher(): FS[Unit]
      @subscriber[String, String]("topic") def objectFetcher(): FS[Unit]
    }
  }
@FPerezP FPerezP self-assigned this Dec 18, 2017
@raulraja
Copy link
Contributor

I think that we can get around with just @publisher and @subscriber which I would call @producer and @consumer if instead of being annotations over def they are over an object or class that is path dependent to the FreesKafkaProcessor or whatever algebra the user is located in.

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

No branches or pull requests

2 participants