11 ms·
Phoenix LiveDashboard
- deleted 7y ago[deleted]
- tomconroy 7y agoBetter link is Jose's tweet about it: https://twitter.com/josevalim/status/1250846714665357315 https://twitter.com/josevalim/status/1250846714665357315
- ariadnavc 7y agohola
- brightball 7y agoHaving this built in is absolutely awesome...
- out_of_protocol 7y ago^^^ screenshots!
- valuearb 7y agoWhat if you live slightly outside of Phoenix? Can you still use the dashboard?
- out_of_protocol 7y agoDashboard built on top of LiveView, which is elixir-specific. * For any other language it means trying to replicate the project from scratch (also unlikely to be of any use on php, python, ruby etc) * For non-phoenix elixir projects you could make it work but you'll rewrite half of Phoenix framework anyway so i don't see the point
- dogweather 7y agoLol
- pselbert 7y agoSearching for things related to Phoenix is a constant problem. Even Phoenix Elixir will sometimes give you results for random bars in Arizona.
- bigbassroller 7y agoTry “Elixir Phoenix” and the topic.
- defnotarobot 7y agoI think it's up and running as far away as Flagstaff.
- rubiquity 7y agoIt’s awesome for Phoenix users to have this built right into their apps. I know it isn’t a full replacement for Splunk or what have you, but it’s a step in the right direction to have this at your finger tips. The SaaSification of operational tools isn’t great from a cost or waste perspective given that most vendors are likely overprovisioned and under utilized. You also can’t beat the user experience of staying in your language and framework’s ecosystem. Well done.
- kuzee 7y agoElixir/Phoenix developers will get a lot of mileage out of the ability to quickly collect and inspect stats like this. This is really great and solves ~50% of the use cases for an outside error monitoring service while also making debugging specific instances easier.
- krat0sprakhar 7y agoWow, this looks amazing - I'm so jealous of the elixir / pheonix ecosystem! The built in telemetry is the killer feature IMO as generally one would have to use an external system such as NewRelic etc to get this info. Awesome work by the folks behind it - now I just need a project idea for which I can try this out :)
- nickjj 7y agoNot to knock the live dashboard but from what I read on IRC you will still likely need to use New Relic or other tools to look at logs and explore the state of your system from the past to help track down errors or analyze / filter those logs from the past. The live dashboard only captures information at the moment. There is no persistence or advanced filtering capabilities. Meaning, if you received an error notification 5 minutes ago but didn't already have the dashboard open, you couldn't just load live dashboard and check it out there. You would have to troll through your own logs or use a 3rd party logging tool just like before. Where live dashboard seems to shine is if you already have it open beforehand, you can see various metrics about your app in real time. Although other logging tools are pretty close to real-time too. But it is cool that something like this is included by default. I hope future releases expand on what it allows you to do.
- taspeotis 7y agoIs Erlang's BEAM VM really slow compared to other virtual machines, or is it Phoenix? It seems to be a bit of a laggard on benchmarks [1] and there's been this thread going on for years [2] which hasn't reached a conclusion. [1] https://www.techempower.com/benchmarks/#section=data-r18&hw=ph&test=plaintext&l=zg24n1-f https://www.techempower.com/benchmarks/#section=data-r18&hw=... [2] https://elixirforum.com/t/techempower-benchmarks/171 https://elixirforum.com/t/techempower-benchmarks/171 EDIT: Thanks everyone for the responses.
- TylerE 7y agoIt's much more complicated than a simple slow <--> fast continuum. Elixir is pretty slow for simple singlethreaded CPU bound tasks. It's incredibly good at multiprocessing, which is really useful in the websphere since your workload is much more likely to resemble thousands of simultaneous communications that need to not block each other rather than calculating a 13042345235223452 digit prime number.
- taspeotis 7y ago> It's incredibly good at multiprocessing, which is really useful in the websphere Right so the benchmark I linked to was TechEmpower Web Framework Benchmarks, and Phoenix managed 186,774 requests/sec on a 14C/28T Xeon to do basically nothing (echo Hello World) and ASP.NET Core managed ... seven million.
- systemd0wn 7y agoIt looks like Plangora made a youtube video recently. https://www.youtube.com/watch?v=Nqr5ly35tu8 https://www.youtube.com/watch?v=Nqr5ly35tu8
- PopeDotNinja 7y agoThe looks pretty neat. Is this a pretty wrapper for the Erlang Observer, or is it more than that?
- sb8244 7y agoThis is more than that. The actual metrics come from erlang functions and aren't tied to observer. https://github.com/phoenixframework/phoenix_live_dashboard/blob/master/lib/phoenix/live_dashboard/system_info.ex#L135 https://github.com/phoenixframework/phoenix_live_dashboard/b... Hook into telemetry is also really cool because any library can be instrumented. The multi node cluster aspect allows easier monitoring of the full cluster
- mikl 7y agoLiveView is such a game changer for Phoenix (and thus Elixir). From being “just another web framework” (albeit a very nice one), LiveView enables a whole different paradigm for web applications. As a developer, it’s like having superpowers. What would have taken days to build with an SPA or similar “fat client” JavaScript can be done in hours with LiveView.
- GiorgioG 7y agoASP.NET Core Blazor has the same ability, for those stuck in a corporate environment.
- math 7y agoeven those who aren't..
- sl1ck731 7y agoIs Blazor still "experimental"? I looked at it a year ago I believe and most people didn't seem to recommend it at that time due to not being optimized.
- GiorgioG 7y agoSadly Microsoft is still terrible with naming developer products. There are 2 Blazors, the server-side blazor (which works like Phoenix LiveView, and then there's the version of Blazor that will target WebAssembly and run completely client-side.) The WebAssembly 'version' of Blazor is still experimental. Server-side Blazor is production-ready as far as Microsoft is concerned (I believe.)
- elamje 7y agoUsing Blazor Server in production right now. Like another commenter said, there is also a client side web assembly target as well. The Server framework is great, but has its issues which I mention elsewhere in the thread.
- theonething 7y ago
- deleted 7y ago[deleted]
- eqmvii 7y agoThis is really cool! I'd love to get this into some apps, and the LiveView dependency might be a nice excuse to sneak that in at the same time...
- fataliss 7y agoI really miss working with Phoenix/Elixir. While switching to the latest hottest tech rarely make sense, I really feel that the Phoenix core team has its head in the right place and when I see the features they put out it really makes me want to switch every project to it.
- djm_ 7y ago>latest hottest tech rarely make sense I would agree! But I'd also say that I believe Elixir has moved past this part of the curve and is seeing serious adoption amongst companies. I first got interested in 2014 and back then it was definitely still early days. 6 years later and I'm still yet to regret the decision to invest time Elixir and BEAM ecosystem.
- peteforde 7y agoCongrats to the Phoenix team on another milestone win. Your rising tide is lifting many boats. For those of you working in Rails, you will be excited to know that we have StimulusReflex: https://docs.stimulusreflex.com/ https://docs.stimulusreflex.com/ SR was inspired by LiveView. It's built on ActionCable, CableReady and morphdom. It is fast like a demon and works well with AnyCable. You can see demos here: http://expo.stimulusreflex.com/demos/tabular http://expo.stimulusreflex.com/demos/tabular
- theonething 7y agoNeat! How does this compare with Turbolinks?
- peteforde 7y agoIt's not an OR, it's an AND. StimulusReflex is built on top of Stimulus, which is designed to work arm-in-arm with Turbolinks. We think that the combination of Rails + Stimulus + Turbolinks + StimulusReflex + solid Russian doll caching is the greatest thing since sliced bread.
- porker 7y agoIt would be great to have a higher-level explanation that included this. I read through the first 4-5 pages of the docs and saw it mentioned these, but didn't pick up (until the code examples) that it used them. I'm not a Rails programmer, but I'm keen to learn about all the different approaches being used & tried, to see what I can make fit with my language.
- peteforde 7y agoHelp! I'm the guy who writes those docs. I want them to be better. Nothing strikes terror like "I read through the first 4-5 pages of the docs and saw it mentioned these, but didn't pick up that it used them." To me, that's like "When I ordered beef, I didn't know you meant a cow!" lol Seriously, help me help you. Where did I fuck this up? The very first paragraph of the Quick Start page: "A great user experience can be created with Rails alone. Tools such as UJS remote elements, Stimulus, and Turbolinks are incredibly powerful when combined. Could you build your application using these tools without introducing StimulusReflex?" https://docs.stimulusreflex.com/quickstart https://docs.stimulusreflex.com/quickstart What is the thing you could have read and understood right away? I really appreciate whatever you can suggest.
- cercatrova 7y agoI like Elixir and all of its infrastructure and libraries, like BEAM and Phoenix, but I could never get used to not having static types. What's the best way to have static types in Elixir? I have seen in Elixir an implementation of functional programming concepts that might prove useful: https://github.com/witchcrafters/witchcraft https://github.com/witchcrafters/witchcraft. It hasn't been updated since last year so I'm not sure if it still works. These days I've just started using Rust and actix-web instead, seems a lot faster due to no VM, with static typing, and moreover, algebraic data types. I wonder if I could use another language without ADTs anymore.
- skrebbel 7y agoSame. I suffer through it, because the rest is pretty neat. There is no best way. Fortunately the Elixir core libraries are annotated with typespecs, which gets you like 30% there. But dialyzer sucks, and the typespec syntax itself, as well as its expressiveness, leave a lot to be desired. It's clearly an afterthought. One day I'm gonna make a TypeScript for Elixir. Note: There's eg Gleam a statically typed language for BEAM, but it's quite unlike Elixir and it has a much smaller community. https://github.com/gleam-lang/gleam https://github.com/gleam-lang/gleam. I doubt using eg Phoenix on Gleam is possible, or if it is, whether it's fun. It looks promising though, especially if you're into Ocaml/Haskell-style "hard" FP.
- midgetjones 7y agoGleam is pretty young, so I wouldn't expect the community to be huge. Not sure what you mean by 'Phoenix on Gleam', but you could write core code in Gleam and use it in an Elixir/Phoenix app, no probs https://dev.to/contact-stack/mixing-gleam-elixir-3fe3 https://dev.to/contact-stack/mixing-gleam-elixir-3fe3
- skrebbel 7y agoI just mean "how easy would it be to common Elixir libraries from Gleam, especially if they're rather involved like Phoenix". Like, quite some of the more popular Elixir libraries (eg Phoenix and Ecto) depend quite heavily on macros, which I assume sortof rules out using them from other languages. Like Elixir itself, I think Gleam will only really shine once a community builds its own libraries for non-trivial messy stuff such as DB layers and web frameworks for it. The interop is be great for simple functional stuff though, like unicode converters, JWT libraries and AWS wrappers.
- namelosw 7y agoPhoenix is amazing. Having shallow experience in Rails, I found I can be productive in day 1. It just works, and solid, and fast. Yet there are more brilliant things ahead like OTP and LiveView. There are many other outstanding functional languages, and I like some of them more than Elixir, but none of them have any framework as solid and straightforward as Phoenix.