CQRS with Event Sourcing, Scala, Akka and Cassandra

Поділитися
Вставка

КОМЕНТАРІ • 4

  • @jmgimeno
    @jmgimeno 2 роки тому

    Congrats for a great video & demo !!
    Two questions:
    - Is it reasonable to assume that the Hotel actor will have as state a set with all the reservations made?
    - You book room number 101 but you only create rooms 1 to 100 when populating the cassandra tables. Why this does not create problems in the updates?

    • @rockthejvm
      @rockthejvm 2 роки тому

      Glad you liked it! For your questions:
      1. Yes, the hotel actor will always have the set of all reservations in its state.
      2. Nice catch! Might have been a mishap -- while preparing for the video, I played with the numbers and my Cassandra tables were bigger than in the video (1000 hotel rooms instead of 100, etc, which is why updates didn't fail), but I downsized them in the demo to have reasonable scale in a reasonable time.

  • @karlkiekenskop2199
    @karlkiekenskop2199 2 роки тому

    i get : clearing rooms failed: com.datastax.oss.driver.api.core.servererrors.WriteTimeoutException: Cassandra timeout during SIMPLE write query at consistency LOCAL_QUORUM (2 replica were required but only 1 acknowledged the write) when running the CassandraTableCleaner against the Astra database locally it runs fine

    • @DataStaxDevs
      @DataStaxDevs  2 роки тому

      If you post the details on stackoverflow.com/questions/ask?tags=cassandra, I'd be happy to help. 🙂 [Erick Ramirez]