Giter Site home page Giter Site logo

theburningmonk / darkseid Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 1.0 716 KB

Actor-based library to help you more effectively and easily push data into an Amazon Kinesis stream by taking care of the heavy lifting for you.

License: MIT License

Shell 0.41% F# 98.43% Batchfile 1.17%

darkseid's Introduction

Hi there ๐Ÿ‘‹

My name is Yan. I'm an AWS Serverless Hero and an independent consultant. I help companies go faster for less by adopting Serverless technologies successfully. If you're interested in working with me, then check out my consulting services.

How to reach me:

Workshops:

Video courses & books:

darkseid's People

Contributors

dustinmoris avatar theburningmonk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

forki

darkseid's Issues

mscorlib.dll exception:

Hi, I'm seeing an exception in Darkseid in: Utils.fs line 59>
`/// Applies memoization to the supplied function f
let memoize (f : 'a -> 'b) =
let cache = new Dictionary<'a, 'b>()

    let memoizedFunc (input : 'a) =
        // check if there is a cached result for this input
        match cache.TryGetValue(input) with
        | true, x   -> x
        | false, _  ->
            // evaluate and add result to cache
            let result = f input
            cache.Add(input, result)
            result`

System.ArgumentException was unhandled by user code
Message: An exception of type 'System.ArgumentException' occurred in mscorlib.dll but was not handled in user code
Additional information: An item with the same key has already been added.

cache is initialized (ie not null) and input, result are also not null.

I could have a dll conflict, but seems unlikely in mscorlib.dll

stack:

Darkseid.dll!Darkseid.Utils.Utils.memoizedFunc@53<string,Amazon.CloudWatch.Model.Dimension[]>.Invoke(string input) Line 53 F#
Darkseid.dll!Darkseid.VirmanVundabar.TrackSuccessfulSend(string shardId, int payloadSize) Line 155 F#
Darkseid.dll!<StartupCode$Darkseid>.$[email protected](Darkseid.Model.InternalModel.Result<Amazon.Kinesis.Model.PutRecordResponse,System.Exception> _arg1) Line 197 F#
[External Code]

This was originally happening with the current nuget package (v0.2.0). I got the source and included it into my project to get a better handle on where it's going wrong.

Any ideas?

Allow dynamic scaling up and down of AeroTroopers

One solution is to allow AeroTroopers to 'promoted' into a commander and have its own fleet of AeroTroopers sending records for him using the same approach of hashing the partition key. So that even though the base number of AeroTroopers we start with does not change, we are still able to increase/decrease the overall throughput of the system as a whole.

Godfrey/Virman will be responsible for dictating when to promote AeroTroopers and monitor the throughput of the system based on the action to see if promotion/demotion makes an observable difference and choose the best approach best on empirical data.

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.