Giter Site home page Giter Site logo

Comments (10)

mabead avatar mabead commented on May 27, 2024

I see that version 3.4.1-alpha changed this behavior:

image

So this looks interesting but 3.4.1:

  • is alpha
  • has only 84 downloads

So my questions are:

  • is 3.4.1-alpha ready to be used in production?
  • do you intend to release non-alpha versions? The last non-alpha version was made in 2017, about 3 years ago.

from analytics.net.

lubird avatar lubird commented on May 27, 2024

Thanks for your questions. We did recently release 3.4.1-alpha and I was about to recommend you try it out to see if it has resolved your issues. Keep in mind that 3.3.1 has also always only been in alpha state, so the answer to "is it ready to be used in production?" should be the same across the two versions.

After we see more traffic through 3.4.1 and build more confidence in its reliability, we do intend to take it out of alpha in the future.

from analytics.net.

mabead avatar mabead commented on May 27, 2024

Since you offer no alternatives and no woraround, I will unfortunately have to do so.

That being said, I must say that the outcome is pretty dissaponting:

  • you don't try to reproduce the issue
  • you give me no confidence that this issue is resolved in the new code. A link with a PR that explains that the issue was solved would have been appreciated.
  • you give me no confidence that the 3.4.0-alpha version is stable

It's even more dissapointing given the fact that the library is related to a product that we pay for.

from analytics.net.

mabead avatar mabead commented on May 27, 2024

@lubird I confirm that 3.4.0-alpha still drops messages. I don't have the log Dropped message because queue is too full anymore. The messages are just lost silently.

I did a burst of 4402 track + 4402 identify calls and only 360 of the track events made their way to amplitude.

I suggest that you look at the BlockingCollection class: https://docs.microsoft.com/en-us/dotnet/standard/collections/thread-safe/blockingcollection-overview

It usually yields simpler and safer code.

from analytics.net.

mabead avatar mabead commented on May 27, 2024

As a workaround, I tried to use the Segment library in synchronous mode:

var segmentConfig = new SegmentSdk.Config();
segmentConfig.SetAsync(false);

My code that sends burst of analytics is part of a nightly job that wants to send more than 5000x identify and 5000 x track events. So, now that I am in synchronous mode, it takes a very long time to send these 10000 messages to the Segment server. Furthermore, my code runs in an AWS lambda which is limited to 15 minutes. Given the high number of messages and the time constraints that I have, all messages can't be sent in 15 minutes.

So, using the synchronous mode is not an option for me.

from analytics.net.

mabead avatar mabead commented on May 27, 2024

I now have a successfull work around. Basically, the algorithm is the following:

Configure segment in async mode
WHILE (not done)
   send batch of 40 events
   flush segment queue
END WHILE

I created a burst of 1114 track + 1114 identify. With this workaround in place, 1113 identify made their way to Segment. So it's not perfect, but it's much better than before.

from analytics.net.

lubird avatar lubird commented on May 27, 2024

Thanks for continuing to follow up on this thread @mabead. We appreciate you reporting this issue as well as sharing your work-arounds.

I've noted the issue on our backend. We'll for sure take a look at this when we can.

In the meantime, I encourage you to submit a PR for this issue if you feel like you have a workable fix you can share with the community!

from analytics.net.

mabead avatar mabead commented on May 27, 2024

Sorry @lubird but since Segment is a product that we pay for, I am not very keen on submitting PRs. Furthermore, the fix is most likely not trivial and would require more than a few hours.

from analytics.net.

cgalan-applaudostudios avatar cgalan-applaudostudios commented on May 27, 2024

@mabead
I tried to replicate your scenario but I wasn't able, could you share your environment (framework version, OS, etc)? I have attached the results. I hope it could help you.
Segmen_ MaxQueueSize test.docx

from analytics.net.

mabead avatar mabead commented on May 27, 2024

I wrote this little utility to try to replicate the issue: https://github.com/mabead/Analytics.NET.Repro_issue_138

Here's what I get:

Analytics.NET Version nb of events sent nb of events seen in amplitude nb of events lost
3.4.2-beta 12000 12000 0
3.4.1-alpha 12000 12000 0
3.3.1-alpha 12000 5361 6639

We therefore see that both 3.4.1-alpha and 3.4.2-beta deliver 100% of the events to Segment and then to Amplitude while 3.3.1-alpha is losing many events.

Note that I initially incorrectly reported that 3.4.1-alpha was also losing messages. I think that I now know where this error came from: after I did a burst of events, it took more than 30 minutes for all the events to be visible in Amplitude. Maybe I just didn't wait long enough.

Thanks for your help on this. We will definitely switch to 3.4.2-beta.

from analytics.net.

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.