Git Product home page Git Product logo

Comments (10)

Terkwood avatar Terkwood commented on August 11, 2024

Inspiration: https://docs.confluent.io/current/tutorials/examples/microservices-orders/docs/index.html#tutorial-microservices-orders

from bugout.

Terkwood avatar Terkwood commented on August 11, 2024

An example which uses lists in aggregates:

https://ericlondon.com/2018/07/26/kafka-streams-java-application-to-aggregate-messages-using-a-session-window.html

from bugout.

Terkwood avatar Terkwood commented on August 11, 2024

Another relevant example which has a "top 3" data structure

https://technology.amis.nl/2017/02/12/apache-kafka-streams-running-top-n-grouped-by-dimension-from-and-to-kafka-topic/

from bugout.

Terkwood avatar Terkwood commented on August 11, 2024

Advanced by #11

from bugout.

Terkwood avatar Terkwood commented on August 11, 2024

You'll want to make sure you can reconstruct the game'shl history of moves using the game state table entry, since replaying using Kafka itself is inefficient (see #6)

from bugout.

Terkwood avatar Terkwood commented on August 11, 2024

Since we only need move history at the end of a game, store pieces in a map of Coord->Player

Track the current turn number

Track whose turn it is

Keep an ordered list of (Player,Turn) so that we know when players passed

Represent passing explicitly in move event (null or some named type)

from bugout.

Terkwood avatar Terkwood commented on August 11, 2024

https://github.com/confluentinc/kafka-streams-examples/blob/master/src/test/scala/io/confluent/examples/streams/StreamToTableJoinScalaIntegrationTest.scala

https://docs.confluent.io/current/streams/concepts.html#globalktable

from bugout.

Terkwood avatar Terkwood commented on August 11, 2024

https://www.confluent.io/blog/distributed-real-time-joins-and-aggregations-on-user-activity-events-using-kafka-streams/

from bugout.

Terkwood avatar Terkwood commented on August 11, 2024

Cycles https://www.instaclustr.com/kongo-5-3-apache-kafka-streams-examples/

from bugout.

Terkwood avatar Terkwood commented on August 11, 2024

https://stackoverflow.com/questions/44275301/kafka-stream-and-kafka-table-one-to-many-relationship-join

from bugout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.