Fork me on GitHub
#pedestal
<
2017-05-22
>
julianwegkamp05:05:14

@jfntn I think I remember reading that you shouldn't use io.pedestal.interceptor.chain/terminate but instead just add a :response to the context.

mtnygard14:05:48

@jfntn @julianwegkamp When using Pedestal to build web services, you can either use terminate or attach a response. That’s because the servlet-interceptor always attaches a terminator function that looks for the response.

mtnygard14:05:05

But if you remove or replace that terminator function with your own custom function, you can still use terminate.

mtnygard14:05:57

Or, if you use interceptors for something other that web services, you can use terminate or define your own terminator functions. (I’ve got a library where I use Pedestal interceptors for Kafka messages… there’s no natural terminator function there so I use terminate when needed.)

julianwegkamp14:05:34

thx @mtnygard. Is this the Kafka library Paul mentioned in his talk and will it become publicly available?

mtnygard14:05:43

Yes, and yes.

mtnygard14:05:57

I just don’t have any particular schedule for releasing it. It’s very raw at the moment and I don’t want to get people’s expectations up too much.

mtnygard14:05:14

OK, well, I have a schedule now.

mtnygard14:05:25

I opened it up as a beta about 2 minutes ago.

mtnygard14:05:39

But unfortunately, I have to run so I can’t answer any questions until tomorrow.

julianwegkamp14:05:39

Thx. Just looking at your code will be interesting enough I assume. Will try to make some time in the coming week...

jimmy15:05:07

@mtnygard I opened a PR to add heroku to pedestal service template so beginner can try out new service and get it on production quickly.