-1

We are having problems using Play-Cache in that the API is blocking. Are there any plans anyone knows of to come up with a new cache API in Play that is not only non-blocking, but reactive with back-pressure?

I've looked at Play-Redis, but it does not seem to be fully non-blocking, and probably not reactive.

Eric Kolotyluk
  • 1,958
  • 2
  • 21
  • 30

1 Answers1

1

Future plans are best discussed on the Play or Play dev mailing lists.

That said, the default implementation for the Cache API is Ehcahe, which is a very mature JVM-only cache, but it is blocking.

If you need to prevent blocking on the the main Play thread pool, I suggest setting up a new thread pool to make the requests. This is a good bit of work on your side, but it is the same strategy as you would need in order to, say, work with the blocking JDBC API for databases.

Paul Draper
  • 78,542
  • 46
  • 206
  • 285