![]() REIN's listings Data and information is protected under federal copyright laws. All users of REIN's listings database should confirm the accuracy of the listing information directly with the listing agent. REIN's listings are based upon Data submitted by its Broker Members, and REIN therefore makes no representation or warranty regarding the accuracy of the Data. (REIN) and has been authorized by participating listing Broker Members of REIN for display. The listings data displayed on this medium comes in part from the Real Estate Information Network, Inc. Information Deemed Reliable but Not Guaranteed. #Realtimes update for freeYou can immediately play around with Hasura for free through one click deployment to Heroku by following the link on their website If you would like to know more about that solution, I’m happy to write another article explaining how to set it up on existing PostgreSQL and use it with your React/Redux application.©(2022) REIN, Inc. Our future plans with Hasura include using more event triggers and migration to serverless. As a result, we got a good, sustainable solution we use for both the web and mobile apps. Migration to a Hasura solution took just two weeks one week of development by a single developer, and another week for bug fixes and QA. #Realtimes update updateAlmost every week, there is a new update the developers get closer to v1.0.0. It still doesn’t have a stable release and is currently in development, but we already use it in production because all the features we use in our work operate without any problems. There are, of course, other features that you might find useful, such as mutation of your data and customer resolvers. WS to HTTP fallback It’s not exactly related to Hasura, but when you use Graphql subscription when your client does not support WebSockets, it automatically uses HTTP as an alternative without any further actions from you. Key features of Hasura Real-time updates from your PostgreSQL database When I realized how easily this could be set up, it blew my mind. ![]() You get all the benefits of GraphQL without compromising access to your origin database, including client libraries for web and mobile, query syntax, and subscriptions. Hasura is a proxy layer between your PostgreSQL database and Graphql server that allows you to set up real time updates very quickly from your PostgreSQL and it’s open-source. This is where Hasura came in! I was so excited to find them at Product Hunt because I’d wanted a solution for this problem for around three years. We faced this issue with one of our own projects when we realised that we needed a simple way of implementing real-time updates without giving up PostgreSQL. Not every company has the resources to initiate migration to GraphQL and, especially if you have a massive product, the large amount of logic on the DB level. It’s ok in many circumstances, but it isn’t clear people can do if they use PostgreSQL. GraphQL follows a similar approach to RethinkDB it uses an effective, independent, and scalable solution where you can request data directly from the client, which is good for replacement of API calls to the backend.Ĭurrently, GraphQL can provide you realtime subscriptions, but the issue remains that GraphQL is a separate database. Graphql is another promising, more recent development, but early versions had no subscriptions at all so it remains to be seen how good it will be. Unfortunately, the RethinkDB project was closed and is now maintained only by the community. That what RethinkDB provides: good client libraries, their own query syntax, and scalability. I am a fan of this solution because, from my perspective, changes in the data should initiate events, clients should be subscribed for a specific query and data the clients should be changed accordingly. ![]() There are also more recently developed data driven solutions, such as RethinkDB. ![]() A bit of historyįor the past 10 years, the most common approach was to use a websocket client, such as socket.io, and server and push events to the customers through it by triggering them inside your backend. There are so many ways of handling real times updates that there will always be discussions about which way is better. Real time updates are a part of almost every modern web and mobile application, with uses in everything from banking apps to news feeds. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |