Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. SignalR sucks

SignalR sucks

Scheduled Pinned Locked Moved The Lounge
data-structuresquestionworkspace
38 Posts 18 Posters 71 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R RickZeeland

    Me and my colleagues at work have totally had it with SignalR and it's erratic behaviour, everything seems to work fine locally, but as soon as it's tested in a production environment unexplainable problems occur. Also there does not seem to be anything to find about these problems on the internet, like long delays on message delivery :mad: Are we the only ones having these problems ? We are thinking about switching to ZeroMQ, see: message-queue-servers[^]

    D Offline
    D Offline
    Dewey
    wrote on last edited by
    #17

    What version of SignalR are you using, i.e. .net framework or .net core? BTW, they never tell you that if SignalR is on a port, in production, it's likely the firewall will block you at most companies.

    R 1 Reply Last reply
    0
    • R RickZeeland

      Me and my colleagues at work have totally had it with SignalR and it's erratic behaviour, everything seems to work fine locally, but as soon as it's tested in a production environment unexplainable problems occur. Also there does not seem to be anything to find about these problems on the internet, like long delays on message delivery :mad: Are we the only ones having these problems ? We are thinking about switching to ZeroMQ, see: message-queue-servers[^]

      S Offline
      S Offline
      Sumuj John
      wrote on last edited by
      #18

      Having a right skill is knowledge. If you don't know, then don't blame/insult the tool. Rather try to acquire the knowledge.

      M 1 Reply Last reply
      0
      • S Sumuj John

        Having a right skill is knowledge. If you don't know, then don't blame/insult the tool. Rather try to acquire the knowledge.

        M Offline
        M Offline
        Mark_Wallace
        wrote on last edited by
        #19

        But not all tools are created equal.

        I wanna be a eunuchs developer! Pass me a bread knife!

        1 Reply Last reply
        0
        • R RickZeeland

          Me and my colleagues at work have totally had it with SignalR and it's erratic behaviour, everything seems to work fine locally, but as soon as it's tested in a production environment unexplainable problems occur. Also there does not seem to be anything to find about these problems on the internet, like long delays on message delivery :mad: Are we the only ones having these problems ? We are thinking about switching to ZeroMQ, see: message-queue-servers[^]

          abmvA Offline
          abmvA Offline
          abmv
          wrote on last edited by
          #20

          did u enable trace log..

          Caveat Emptor. "Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long

          We are in the beginning of a mass extinction. - Greta Thunberg

          R 1 Reply Last reply
          0
          • M Mark_Wallace

            Just a wild stab in the dark, but is Symantec Endpoint Protection involved in the equation?

            I wanna be a eunuchs developer! Pass me a bread knife!

            R Offline
            R Offline
            RickZeeland
            wrote on last edited by
            #21

            Good one, we'll check that !

            1 Reply Last reply
            0
            • D Dewey

              What version of SignalR are you using, i.e. .net framework or .net core? BTW, they never tell you that if SignalR is on a port, in production, it's likely the firewall will block you at most companies.

              R Offline
              R Offline
              RickZeeland
              wrote on last edited by
              #22

              I know they are using self hosted .NET Core SignalR and maybe .NET too ... Microsoft.AspNet.SignalR.Core.dll 2.2.6

              1 Reply Last reply
              0
              • abmvA abmv

                did u enable trace log..

                Caveat Emptor. "Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long

                R Offline
                R Offline
                RickZeeland
                wrote on last edited by
                #23

                Yes, but we did not get any wiser, that is the most frustrating thing about SignalR: you don't have a clue what is going on :sigh:

                abmvA 1 Reply Last reply
                0
                • P PIEBALDconsult

                  Pretty much anything of that sort is created by architecture astronauts and will not fullfil any particular need.

                  R Offline
                  R Offline
                  Rage
                  wrote on last edited by
                  #24

                  PIEBALDconsult wrote:

                  architecture astronauts

                  This is priceless. Will be reused.

                  Do not escape reality : improve reality !

                  P 1 Reply Last reply
                  0
                  • R RickZeeland

                    Me and my colleagues at work have totally had it with SignalR and it's erratic behaviour, everything seems to work fine locally, but as soon as it's tested in a production environment unexplainable problems occur. Also there does not seem to be anything to find about these problems on the internet, like long delays on message delivery :mad: Are we the only ones having these problems ? We are thinking about switching to ZeroMQ, see: message-queue-servers[^]

                    H Offline
                    H Offline
                    h0wXD
                    wrote on last edited by
                    #25

                    Are you using the .NET Full Framework or the .NET core? I only started with .NET core 2.1 and built distributed batch processing work queue and it's working fine and even has good performance, tested crossplatform and scaled on aws cloud without problems. I did experiment with large messages (10MB) but (de)serialization performance caused me to stick to small packets and strip of unnecessary data.

                    R 1 Reply Last reply
                    0
                    • H h0wXD

                      Are you using the .NET Full Framework or the .NET core? I only started with .NET core 2.1 and built distributed batch processing work queue and it's working fine and even has good performance, tested crossplatform and scaled on aws cloud without problems. I did experiment with large messages (10MB) but (de)serialization performance caused me to stick to small packets and strip of unnecessary data.

                      R Offline
                      R Offline
                      RickZeeland
                      wrote on last edited by
                      #26

                      The problems are mainly with .NET Core SignalR. Large messages is not what SignalR is meant for, and we only use small messages.

                      1 Reply Last reply
                      0
                      • R RickZeeland

                        Me and my colleagues at work have totally had it with SignalR and it's erratic behaviour, everything seems to work fine locally, but as soon as it's tested in a production environment unexplainable problems occur. Also there does not seem to be anything to find about these problems on the internet, like long delays on message delivery :mad: Are we the only ones having these problems ? We are thinking about switching to ZeroMQ, see: message-queue-servers[^]

                        C Offline
                        C Offline
                        C0byC
                        wrote on last edited by
                        #27

                        have you looked at ServiceStack Server Events. as an alternative to SignalR?

                        Over..

                        R 1 Reply Last reply
                        0
                        • R RickZeeland

                          Me and my colleagues at work have totally had it with SignalR and it's erratic behaviour, everything seems to work fine locally, but as soon as it's tested in a production environment unexplainable problems occur. Also there does not seem to be anything to find about these problems on the internet, like long delays on message delivery :mad: Are we the only ones having these problems ? We are thinking about switching to ZeroMQ, see: message-queue-servers[^]

                          P Offline
                          P Offline
                          Paulo_JCG
                          wrote on last edited by
                          #28

                          As Sander Rossel and Scott Serl pointed out, SignalR's goal is not to be a message queue service. The fact that you can use it as one does not mean you should.

                          Paulo Gomes Measuring programming progress by lines of code is like measuring aircraft building progress by weight. —Bill Gates Everything should be made as simple as possible, but not simpler. —Albert Einstein

                          1 Reply Last reply
                          0
                          • R RickZeeland

                            Yes, but we did not get any wiser, that is the most frustrating thing about SignalR: you don't have a clue what is going on :sigh:

                            abmvA Offline
                            abmvA Offline
                            abmv
                            wrote on last edited by
                            #29

                            these kind of things may need some investigation and thought..also configuration management..like what is the difference between the development and production environments ? is there a firewall..are the ports enabled... is there dpi ssl filtering ...packet inspection.... is there some timeouts that are causing connections to drop...latency...is there firewall or av on the production.. any lockdowns... are the pipes open properly...https://forums.asp.net/t/2096572.aspx?why+signalr+so+slow.... https://docs.microsoft.com/en-us/aspnet/signalr/overview/testing-and-debugging/enabling-signalr-tracing

                            Caveat Emptor. "Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long

                            We are in the beginning of a mass extinction. - Greta Thunberg

                            1 Reply Last reply
                            0
                            • C C0byC

                              have you looked at ServiceStack Server Events. as an alternative to SignalR?

                              Over..

                              R Offline
                              R Offline
                              RickZeeland
                              wrote on last edited by
                              #30

                              Thanks for the tip, I will have a look at it !

                              1 Reply Last reply
                              0
                              • R Rage

                                PIEBALDconsult wrote:

                                architecture astronauts

                                This is priceless. Will be reused.

                                Do not escape reality : improve reality !

                                P Offline
                                P Offline
                                PIEBALDconsult
                                wrote on last edited by
                                #31

                                Apparently Joel Spolsky coined it. Look it up.

                                R 1 Reply Last reply
                                0
                                • P PIEBALDconsult

                                  Apparently Joel Spolsky coined it. Look it up.

                                  R Offline
                                  R Offline
                                  Rage
                                  wrote on last edited by
                                  #32

                                  Here[^] for those interested. Nice one, thanks.

                                  Do not escape reality : improve reality !

                                  1 Reply Last reply
                                  0
                                  • R RickZeeland

                                    Me and my colleagues at work have totally had it with SignalR and it's erratic behaviour, everything seems to work fine locally, but as soon as it's tested in a production environment unexplainable problems occur. Also there does not seem to be anything to find about these problems on the internet, like long delays on message delivery :mad: Are we the only ones having these problems ? We are thinking about switching to ZeroMQ, see: message-queue-servers[^]

                                    D Offline
                                    D Offline
                                    dustinin
                                    wrote on last edited by
                                    #33

                                    I have found that disabling all the fallbacks and forcing SignalR to use websockets makes a huge difference. Also if you are using nginx there is a config setting that limits the number of connections to 300 that you need to bump up. Also I am not sure in what capacity you are using SignalR, but you might want to check out the below library (disclaimer: I'm the author) Entity Signal - Real Time Entity Framework (EF) and ASP.NET core[^]

                                    1 Reply Last reply
                                    0
                                    • R raddevus

                                      I'm always interested in talking about "WebSocket" technology. I'm using Firebase in a project right now and I've created a firebase example you may find interesting. Here is the most simple example where you can move a game pawn in your browser window and see it move (across the Internet) in the other person's browser. pawns[^] I also wrote up an article on SignalR, but unfortunately it is using a little older version of SignalR : Beginner's Guide to Using SignalR via ASP.NET[^] Possible Way To Test? You may like to open the browser on a few different devices and try it out to see if you see the same problems you are seeing in your app. If you see the problems it may be the firewall or network you are on. Here's a direct link to the SignalR one you can try: pawns[^] It's a weird URL but that is because I wrote it a while back and the URL that it is coded up with is very important in the over all project. It's just anonymous link to my web site: raddev.us You can test simply by moving a game pawn around and seeing it move in other browsers. Open up a few browser windows and try it out and let me know.

                                      P Offline
                                      P Offline
                                      Peter Ripley
                                      wrote on last edited by
                                      #34

                                      That is very cool!

                                      R 1 Reply Last reply
                                      0
                                      • P Peter Ripley

                                        That is very cool!

                                        R Offline
                                        R Offline
                                        raddevus
                                        wrote on last edited by
                                        #35

                                        Thanks I really appreciate that. :thumbsup: SignalR and WebSocket tech is really interesting, but SignalR can be quite confusing to work with -- challenges with auth and security, etc. and getting it to work when deployed.

                                        P 1 Reply Last reply
                                        0
                                        • R raddevus

                                          Thanks I really appreciate that. :thumbsup: SignalR and WebSocket tech is really interesting, but SignalR can be quite confusing to work with -- challenges with auth and security, etc. and getting it to work when deployed.

                                          P Offline
                                          P Offline
                                          Peter Ripley
                                          wrote on last edited by
                                          #36

                                          It sounds to me like another MS com tool that requires a lot of configuration and is too easy to break: WCF. When it works it works great, but when it doesn't it's very stubborn about it!

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups