

The user can view a list of questions, as well as create them. Instead I’m taking the lessons I learned while building that project, and we’re going to build a piece of it. That application has a bit more pieces to it than make sense for a tutorial like this. The benefits of web sockets for updating state of pick selection, the scoring, etc, came pretty clear to me. The idea was to model this in a similar way to the popular Jackbox games where users can easily join a game on their phone, select their picks and see a leaderboard. For a sport you could equate this to first to score a goal, or first team to have a strikeout in baseball, etc. This in particular is for a StarCraft meetup I would go to, where we would have a raffle, and each game we would pick before hand who would be the one to win, as well as hit other first milestones in the game. The application that I ended up building is one for users making predictions for a particular match or game. Recently when working on a side project of mine I wanted to leverage both actix for its HTTP API capabitilies and integrate websockets for updating the user on state changes. ActionHeroJS is a NodeJS API framework that offers relatively seamless handling of HTTP & Websocket requests. There are a number of frameworks one can dig into to leverage web sockets. That said it’s not a technology that I’ve leveraged very much in my career working at various agencies. I don’t think they’re needed for every case out there, I imagine we run into them on all sorts of applications we use day to day. “This post is about Actix & Rust!” Good question, reader! I bring this wonderful history of web development up because I feel like websockets are a really powerful tool. “Why are you going on about this” you ask. This is where the modern frameworks like React & Angular come in. Which can work really well for a lot of applications, but when you need more dynamic control of a page, it becomes less scalable.
#Actix update code
The interface is built with a variety of technologies, one can still use tech like I did 6-7 years ago: server rendered pages in Rails and writing jQuery code to make things more dynamic.

#Actix update full
Now we’re writing the backend side as full on REST apis, where all the server does is return data, and the client uses that data to populate the interface. Over time we got more sophisiticated server rendering options like asp, php, and then into MVC frame works like Rails and Django.
#Actix update how to
In late 90s to early 2000s I learned off various websites how to build web pages with HTML, tables, random JavaScript snippets, etc. The world of web development really has come a long way over the years.
