Giter VIP home page Giter VIP logo

election-commission's Introduction

election-commission

Fuse: Kafka streams

###Prerequisites:

Download confluent distribution https://www.confluent.io/product/confluent-open-source/

https://docs.confluent.io/current/quickstart/cos-quickstart.html#cos-quickstart

Run ./confluent start from bin folder

Run ./confluent status

control-center is [UP]
ksql-server is [UP]
connect is [UP]
kafka-rest is [UP]
schema-registry is [UP]
kafka is [UP]
zookeeper is [UP]

Control-center URL : http://localhost:9021 Swagger URL: http://localhost:9000/swagger-ui.html

Guidelines

We will develop polling system based on β€˜Twin’ approach: http://people.csail.mit.edu/rivest/RivestSmith-ThreeVotingProtocolsThreeBallotVAVAndTwin.pdf

Topics will be used: List of candidates Voters list (sha from ssn + salt ) Raw votes Signed votes Voter anonymized metadata (age, education, address, income, num of children ...)

Queries: Voters statistics Participation rate and distributions Votes rate and distributions

./kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1  --topic vote
./kafka-topics --delete --topic vote --zookeeper localhost:2181
./confluent destroy
./kafka-console-consumer --topic vote --bootstrap-server   localhost:9092
./kafka-topics --list --zookeeper localhost:2181

# working with string messages:
cat votes.json | ./kafka-console-producer --broker-list localhost:9092 --topic vote

election-commission's People

Contributors

levplotkin avatar

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.