Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeUp: A continuation-local-storage Show #20

Closed
dshaw opened this issue Nov 17, 2013 · 32 comments
Closed

NodeUp: A continuation-local-storage Show #20

dshaw opened this issue Nov 17, 2013 · 32 comments
Assignees

Comments

@othiym23
Copy link

+1, although I think it would be most interesting to talk about asyncListeners and the new event listener stuff that @trevnorris is hacking on, with CLS being an application of the API(s). Also, it would be cool to get @dazld to talk a little about his experiences with CLS as an end user.

@dshaw
Copy link
Member Author

dshaw commented Nov 17, 2013

Sounds great. @dazld, what do you think? You interested in coming on @nodeup?

@creationix
Copy link

sounds like fun

On Sat, Nov 16, 2013 at 11:39 PM, Daniel Shaw notifications@git.luolix.topwrote:

[tentatively] December 2013 NodeUp TBD

With:

Topics:

  • continuation-local-storage all the things!


Reply to this email directly or view it on GitHubhttps://github.com//issues/20
.

@trevnorris
Copy link

As long as it's after Node Summit, I'm cool with it. :)

@dazld
Copy link

dazld commented Nov 20, 2013

hey guys! sure, would love to!

@dazld
Copy link

dazld commented Nov 20, 2013

We're using cls for this kind of stuff:

  • Abstraction of values that might be 'global' in a browser context (things like cookies, auth tokens)
  • Maintaining per-request state in a serving http context
  • Cleanly avoid passing around tons of objects to everything, attaching things to req etc
  • being able to use event listeners and know they are doing the right thing (especially WRT below..)
  • Means we can have an async page rendering process on the server, especially useful in context of writing non-blocking async code, and being lazy with knowing what data we may or may not need to serve a request

@dshaw
Copy link
Member Author

dshaw commented Nov 20, 2013

@dazld Excellent! Glad to have you on board.

@dshaw
Copy link
Member Author

dshaw commented Dec 2, 2013

@nodeup @floating @othiym23@trevnorris @creationix @dazld

Pencilled this in for Thursday 12/19. What do you all think?

@ghost ghost assigned dshaw Dec 2, 2013
@trevnorris
Copy link

@dshaw I'll be visiting family from 19-27 and won't be available during that time.

@creationix
Copy link

It's good for me.

On Mon, Dec 2, 2013 at 8:37 AM, Daniel Shaw notifications@git.luolix.topwrote:

@nodeup https://github.com/nodeup @floatinghttps://github.com/floating
@othiym23 https://github.com/othiym23‎ @trevnorrishttps://github.com/trevnorris
@creationix https://github.com/creationix @dazldhttps://github.com/dazld

Pencilled this in for Thursday 12/19. What do you all think?


Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-29599269
.

@dshaw
Copy link
Member Author

dshaw commented Dec 2, 2013

Having @trevnorris on this show is key, so let's look to reschedule. Next dates on my NodeUp calendar are: 1/2 and 1/16.

@trevnorris
Copy link

@dshaw Right now either of those dates work for me.

@othiym23
Copy link

othiym23 commented Dec 2, 2013

I'm fine for either 1/2 or 1/16!

@dazld
Copy link

dazld commented Dec 3, 2013

Both dates in Jan are good for me too.

@AndreasMadsen
Copy link

Just letting you know that trace is now another application for AsyncListener.

@FredKSchott
Copy link

@dshaw @othiym23 Did this show ever happen? +1 if not, I'd love to see a show about CLS and the current state of AsyncListener. I'm sure it would blow a lot of peoples minds (I know it did for me :)

If you need more people, I'd be happy to share my experiences building our logging framework on top of it (see: http://fredkschott.com/post/2014/02/conquering-asynchronous-context-with-cls/)

@dshaw
Copy link
Member Author

dshaw commented Feb 20, 2014

@FredKSchott Dope.

We're currently waiting on @trevnorris to come back from paternity leave. Should be soon though.

@othiym23
Copy link

I love the idea of having @FredKSchott on to talk about building a logging framework with asyncListeners / CLS!

@gabrielf
Copy link

👍 would listen!

@floating
Copy link
Member

@trevnorris @creationix @dazld Are you available to record this Thursday (3/27) at 11am PDT?

// @dshaw @othiym23

@trevnorris
Copy link

Think that time works for me.

@dshaw
Copy link
Member Author

dshaw commented Mar 24, 2014

@FredKSchott @trevnorris Want to come to New Relic and record live?

@othiym23
Copy link

I'm available, although we'll need to reschedule a meeting here at NR.

@janaboruta is it OK with you / Thea the other members of the New Relic community team if we use the podcasting studio?

@janaboruta
Copy link

@othiym23 That's fine with us. I'll ping you on Hipchat to discuss the logistics.

@dazld
Copy link

dazld commented Mar 25, 2014

Count me in.

@FredKSchott
Copy link

+1 Count me in as well!

@dshaw
Copy link
Member Author

dshaw commented Mar 26, 2014

WORDS!! Let's do this.

@othiym23@trevnorris @dazld @FredKSchott Please take a moment to drop an email to nodeup@gmail.com and dshaw@dshaw.com with your Google Docs friendly email, your Skype name and Twitter handle. Thank you!

@charandas
Copy link

@dshaw will this be broadcasted live in any form?

@creationix
Copy link

Sorry guys, I'm ultra busy and working 12 hours days this week to catch up. It would be irresponsible for me to add another hour to my schedule. On the bright side, @othiym23 knows fairly well my input into the conversation.

I've always wanted an event source hook in node for implementing things like nextTick, domains, long stack traces, etc. I'm sad that event emitters are considered part of the event system when they are clearly sync constructs and I wish the core APIs were more callback based and less event based to make tracking this stuff easier. The edge cases are pretty nasty in the current semantics.

Have fun!

@dshaw dshaw closed this as completed Apr 10, 2014
@CrabDude
Copy link

I know this is closed and already recorded (haven't listened to it yet), but for the sake of the argument, AsyncListener is implemented at the wrong end of the stack to properly solve issues like long-stack traces, CLS and/or async try/catch properly without shimming EE to properly set the handler context differently (at time of handler listen, not time of EE construction).

FWIW, CrabDude/trycatch#32

@dshaw
Copy link
Member Author

dshaw commented Apr 15, 2014

@CrabDude Thanks for connecting the discussion.

@mgan59
Copy link

mgan59 commented Jun 12, 2014

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests