You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/04/20 08:58:35 UTC
[GitHub] [pulsar] jerrypeng commented on issue #4093: [issue#4042] improve
java functions API
jerrypeng commented on issue #4093: [issue#4042] improve java functions API
URL: https://github.com/apache/pulsar/pull/4093#issuecomment-485072935
@sijie I strongly disagree. Allowing users to the send out messages via
```
messageBuilder.value("my-topic").key("key").properties("myproperties").sendAsync();
```
breaks the abstraction of functions. In this case, the user might as well just run a custom java application. By using a publish message in the context, we can also collect metrics for the user on number of messages outputted and errors on publish. Allowing users to do this side steps a lot of mechanisms and workflows are ready in place in functions
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services