Are the backends supposed to be swappable? #46
AntonOfTheWoods
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just noticed that using
memory
for testing meant I had code that is invalid for thekafka
driver. Basically,memory
allows you to haveint
s as messages,kafka
fails when it tries tomessage.encode('utf8')
.postgres
doesn't do a.encode
but also fails on an int, as does redis.Is this expected, in that you are supposed to know what your backend supports so you will naturally think to pass the right kind (which is typed as
Any
)? Might it be worth having an equivalent API (maybe by default, with specific, alternative pub/sub methods that support the full range of objects supported by the platform)?Beta Was this translation helpful? Give feedback.
All reactions