samagra-comms / inbound

0 stars 15 forks source link

Cache cassandra result in conversation history #75

Closed chinmoy12c closed 1 year ago

chinmoy12c commented 1 year ago

Currently the /conversation-history API queries Cassandra here to pull conversation history every time a request is made. This makes this endpoint slow. We need to cache the conversation history returned by Cassandra and also update it as a user communicates with a bot. The cached result may be limited to the latest 100 messages (should be configurable).

pankajjangid05 commented 1 year ago

Still working on this ticket and trying to complete it today.

pankajjangid05 commented 1 year ago

Implementation has been done. Waiting for PR's Review by @chinmoy12c

  1. utils
  2. inbound
  3. outbound
geeky-abhishek commented 1 year ago

@chinmoy12c to review

pankajjangid05 commented 1 year ago

Deployment is done on staging and prod with testing.