Code Monkey home page Code Monkey logo

kulay's People

Contributors

dudewhocode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

icodein

kulay's Issues

Add redis pubsub command

Similar to passing messages from redis queue to other services, Need to implement redis pubsub module where we can publish messages to a redis channel or subscribe messages from different channels and pass them around to different services.

Rotate the jsonl files

Rotate the jsonl files by batch count taken from config.toml, once batch count is reached close current file and open new one.

Deadlock while testing

When I run the test for fileWriter.go I get following error but it doesn't happen when the code is run properly from main.

/usr/local/Cellar/go/1.8/libexec/bin/go test -c -i -o /private/var/folders/74/ld7ykl517ks_pdvqj28q3yhw0000gn/T/fileWriter_test_gogo naren/kulay/backend/fileio
/private/var/folders/74/ld7ykl517ks_pdvqj28q3yhw0000gn/T/fileWriter_test_gogo -test.v -test.run ^TestPut$
fatal error: all goroutines are asleep - deadlock!

Refactor all the imports

As the project is recently moved from another service to github, refactor all imports to support go get command

AWS config overrides region in config.toml

The shared configuration in ~/.aws/config overrides the custom config.toml, When region is present in config.toml it should override ~/.aws/config by only taking secret key and value from it.

Change commands to flags

Change command design from
$ kulay from us_logs to sg_logs to
$ kulay -f sqs.us_logs to sqs.sg_logs
Commands doesn't suite the use case, so use flags

Create a filewriter module

Create a module that writes all messages from a channel to file, This can be used to backup messages from other services.
$ kulay -f sqs.prod_queue -to file.jsonl
$ kulay -f sqs.prod_queue -to file.csv

Clearer documentation

Write more documentation on the config file structure, what all the options are available for the available service in kulay.

kulay command silently failing

kulay -f random_sqs.test_queue -t redis.test_buffer
In above command the main section random_sqs is invalid and test_queue sub-section is valid. The command doesn't throw any error and silently waits.

Support for zeromq

kulay should support passing messages between zeromq and other services

Add SQS producer

Write an aws SQS producer to complete the sqs module of kulay.

Add goroutine worker pools

Right now only single goroutine kicks off per command, Implement a worker pool where workers will be assigned for routing msg between services.

Implement jsonl -> SQS

SQS to jsonl module is done, should implement the vice versa, picking up message from file and sending it to queues

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.