huntz20
Hi guys here the thing i want to make scoring board with web that can see real time by everyone, but in my scoring board i do have stopwatch with microsecond precision
is it possible to use channel on this approach ? and how do i benchmark the latency
Thanks
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #hex
- #security











Showing Posts 1 to 6- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
al2o3cr
Even if you could accurately measure the latency from a server to a user to microsecond precision, it’s going to vary from one message to another (jitter) by many microseconds.
Can you describe what you’re trying to measure in more detail?
huntz20
hmm actually im not trying to sending much information with websocket just signaling when to start and stop the stopwatch, my worry is if latency more that 500ms it will seen as glicth in my application
zachallaun
There’s a very big difference between 500ms and a microsecond
The problems you’re looking for answers to transcend language and framework. The simple answer to your question is yes, you could definitely use a channel, but I suspect that the answer to your real question, as @al2o3cr implies, may require much more information.
benwilson512
Certainly you can have your Elixir server generate a timestamp at microsecond accuracy.
Can you walk us through how a user or users would interact with your application in a step by step way?
huntz20
yeah so i make some POC on my project years ago, when i click to stop button to pause the watch it take like 1sec before stopwatch pause, i see there some issue with slow connection where i do test
benwilson512
Do you have a an example that demonstrates this issue? Phoenix channels add mere microseconds of latency on top of the actual connection latency, it should be extremely fast.