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).
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).