This is why you need a centralized logger on your software systems

Поделиться
HTML-код
  • Опубликовано: 7 янв 2025

Комментарии • 61

  • @lucasfariadev
    @lucasfariadev Год назад +39

    Cody, thank you so much for your content. I feel like you're one of the few content creators that is actually providing content for mid-level to senior+ engineers, which I deeply appreciate. Enough is enough with all this "create your Netflix/Twitter/Instagram clone" and similars. You're actually helping me getting my senior promotion (hopefully next year). Please keep it up.

    • @WebDevCody
      @WebDevCody  Год назад +1

      Glad to hear it!

    • @_timestamp
      @_timestamp Год назад +2

      I agree with you. Cody is doing something different here. Nice job. Really

    • @eshw23
      @eshw23 Год назад

      I agree, even though im a junior this stuff really sets a high bar for me on what I should know and learn, etc

    • @fisayoobilaja2960
      @fisayoobilaja2960 Месяц назад

      1 year on! Hope you got the promotion?

    • @lucasfariadev
      @lucasfariadev 29 дней назад

      @@fisayoobilaja2960 hahaha I got it actually! though it happened from job hopping and not on my prev company 😅

  • @nova2wl
    @nova2wl Год назад +18

    Logging is huge, especially in larger orgs where uptime is mission critical. I am not a dev but work with the operations/ reliability team and logging allows our 24/7 team to identify issues faster and able to engage the correct team more accurately.
    We work with the devs and SREs to make the logging more accurate, create alerts and dashboards to make it easy for less tech operators to react to alerts that matter.
    Logging is boring but very useful lol

  • @maddriven07
    @maddriven07 Год назад +3

    Thank you for this kind of content that gives newcomers an idea what the industry is using outside of common stuff like React, NodeJS, etc

  • @oSpam
    @oSpam Год назад

    Thanks for the last few videos Cody, I’ve recently added logs on my prod apps and they’ve picked up so many things I missed! Really appreciate it

  • @williamschaefermeyer7007
    @williamschaefermeyer7007 Год назад +1

    I like the overview videos a lot. It'd be really nice to have a video on how to set this stuff up also

  • @thantzinoo938
    @thantzinoo938 Год назад +3

    If possible please make a deep dive video on ELK stack, really love how simplify things...

  • @nimmneun
    @nimmneun Год назад

    Thanks for the video 😊 Looks similar to Graylog which we use at my current job for application side logging.

  • @katanaut
    @katanaut Год назад

    Love your videos and learning a lot. thank you ❤️

  • @keshavakumar9828
    @keshavakumar9828 Год назад +1

    Even though I don't understand much of these terms i come here just to expose myself to these new vocabulary. And later on learn them.

  • @sohansingh2022
    @sohansingh2022 Год назад +1

    Nice!! Thanks 🙏

  • @Badadodadoop
    @Badadodadoop Год назад

    You make me a better developer. Thank you :)

  • @cas818028
    @cas818028 Год назад

    We use glitchtips self hosted version and since it’s compatible with all of Sentry’s SDKs there is a lot you can do with it. Also quite a bit easier to setup then then solution mentioned above

  • @pyrocentury
    @pyrocentury Год назад

    How would you implement client-side logging? Winston is only used for Node.js logging. Seem like I'll have to implement an API backend that I'll make a post request to when errors are caught.

    • @WebDevCody
      @WebDevCody  Год назад

      yeah, you'll client will need to add logic to catch all exceptions and forward them to a authenticated backend endpoint so you know what errors happen for which users.

  • @Dom-zy1qy
    @Dom-zy1qy Год назад +1

    So this type of logger; do they typically send the longs to the centralized logger as they happen, or do they store the logs locally then send them in batches, or is this dependent on the framework / project / config.

    • @ccccjjjjeeee
      @ccccjjjjeeee Год назад

      I work at Axiom (6:14 in the video). Our SDKs batch by default, but also have the option not to (as well as a lot of other config options to override the default behaviour. I don't know all the details about every other service, but in general I would expect them to not be too different in this regard.

    • @yarmgl1613
      @yarmgl1613 Год назад

      we batch our logs, usually writes 100 at a time or if 10 seconds have passed

    • @WebDevCody
      @WebDevCody  Год назад

      I’m assuming it’s based on configuration, but batching would be the most performant for large amounts of logs I’d think

    • @Dom-zy1qy
      @Dom-zy1qy Год назад

      Thanks for all the replies guys, I guess batching would usually make the most sense, cause you could just adjust the batch intervals if you need really up to date logs anyway.
      I can imagine there might be some systems where concurrent logging is required.

  • @congminhluu5068
    @congminhluu5068 Год назад +1

    I've heard of this so many times but never actually implement it (I suppose as a web dev knowing that it exists is enough right?)
    There is one point that confuses me: Why ElasticSearch when Kibana is already a search + dashboard ? Isn't that redundant?

    • @WebDevCody
      @WebDevCody  Год назад +1

      Kibana just communicates directly with elasticsearch. Elasticsearch is where all the data is stored

    • @congminhluu5068
      @congminhluu5068 Год назад

      @@WebDevCody ah I see I see ty for the reply

  • @NoobaLV
    @NoobaLV Год назад

    Could you use ELK stack with a service like Sentry? How do they compare? It feels like Sentry is used for catching errors in a detailed manner (stacktraces) where as the ELK stack would catch errors and general system information. I would like to hear your input because this seems like a tool my team could use

  • @benocxx7906
    @benocxx7906 Год назад

    I would love a video explaining how to secure user data from devs having access to the server. For example, let's you're encrypting phone numbers, nothing stops a dev to access the server, take the encryption key and decrypt the fields. What are the different approach to solve this issue?

    • @WebDevCody
      @WebDevCody  Год назад

      Idk if you can other than encrypt on the ui and never let any dev know the private keys used to decrypt. You don’t trust your devs?

    • @benocxx7906
      @benocxx7906 Год назад

      @@WebDevCody I trust my dev, but I've always been wondering how big companies with a lot at stakes do

  • @SeibertSwirl
    @SeibertSwirl Год назад +2

    Oooo a centralized logger huh lol you’re doing great babe! ❤u

  • @GDEVELOPER0
    @GDEVELOPER0 Год назад

    Hey Dev Cody,
    I wanna setup my custom back-end. I saw your videos and you're astonishing.
    Can you please create a video on how to setup a scalable application with laravel and docker.
    Or you can create a course for that! It'll be an ace of course.

    • @WebDevCody
      @WebDevCody  Год назад +1

      I don’t really use laravel, but I’d just find an existing docker compose file, I’m sure there are a lot

    • @GDEVELOPER0
      @GDEVELOPER0 Год назад

      ​@@WebDevCody Oh Thank you so much

  • @rotivanov
    @rotivanov Год назад

    Dude you rock! Also mate, would you mind sharing the brand/model of your main monitor, please? I am looking for a good monitor for my Mac mini. Thanks a lot for all the shared knowledge!

    • @WebDevCody
      @WebDevCody  Год назад +1

      I use my laptop monitor

    • @rotivanov
      @rotivanov Год назад

      @@WebDevCody thanks a lot Cody!

  • @hichamlotfi3668
    @hichamlotfi3668 Год назад

    great video thanks

  • @G0NZA11
    @G0NZA11 Год назад

    Have you used sst with kafka or msk? How is the support for sst to work offline? (Not only live lambda but db and others).
    Thanks!

    • @WebDevCody
      @WebDevCody  Год назад

      I only use sst for deploying, not for running anything locally

    • @G0NZA11
      @G0NZA11 Год назад

      @@WebDevCody gonna have to give a little try to see if I can replace serverless offline. Thanks for your time and your content, have a good one!

    • @WebDevCody
      @WebDevCody  Год назад

      @@G0NZA11 what issues are you having with serverless offline? I've used the serverless framework as well, it seems to work ok

    • @G0NZA11
      @G0NZA11 Год назад

      @@WebDevCody it's getting too big and too slow to deploy, and iac seems better. Also the plugin ecosystem is kind of dead, we already have some patches on the serverless-offline family of plugins (dynamo, sqs...)

    • @WebDevCody
      @WebDevCody  Год назад

      @@G0NZA11 I’d consider serverless framework as an IaC tool. our project started with serverless framework, but we found aws cdk is too slow and was brittle 4 years ago. Now we deploy everything using terraform, including all our lambda function (which kind of sucks to be honest), but I’ve found terraform to be a much better IaC tool. SST uses aws cdk under the hood, so I’d also be a bit cautious migrating to it without testing stuff out

  • @MrR3set
    @MrR3set 4 месяца назад

    Whats the price

  • @LawZist
    @LawZist Год назад

    Great video! What log service do you use in your saas application?

    • @WebDevCody
      @WebDevCody  Год назад

      ELK and aws cloudwatch

    • @LawZist
      @LawZist Год назад

      @@WebDevCody from your videos i understood that you don't use vps, how do you deploy your elk stack? thanks again!

    • @WebDevCody
      @WebDevCody  Год назад +1

      @@LawZist we use aws opensearch which has kibana built in

  • @damonmedekmusic2015
    @damonmedekmusic2015 Год назад

    For clarity, this would NOT be a solution for browser client side logging. This sounds more for server side Node systems or even lower level software/hardware configurations. For client side debugging, having tests run is also a great proactive solution.

    • @WebDevCody
      @WebDevCody  Год назад

      There are ways to ship any front end exceptions to your api so that are also indexed into you logging system

  • @WahabSurfali
    @WahabSurfali Год назад

    Good 👍🏻

  • @leg875
    @leg875 Год назад

    How is this different from a splunk logs please explain

    • @WebDevCody
      @WebDevCody  Год назад +1

      It’s the same, but splunk isn’t free and I hear it’s better

  • @eshw23
    @eshw23 Год назад

    Express? The dark side?

  • @willi1978
    @willi1978 Год назад

    just build a monolith