Jump to content
uniGUI Discussion Forums

Exposing methods Restfull the same unigui server , what better way? it's possible ?


Recommended Posts

  • 3 weeks later...
  • 11 months later...

I have the same above request and need to support RESTful requests. To avoid asking client to install two services on two different ports, I need to merge a RESTful service with Unigui.

 

I know there is a HTTPCommand on Server module. Answering requests in this function will block other requests as the process can be time consuming. Creating threads and managing them can be one way to handle it, but will need good effort.

 

Does/will Unigui support handling  Rest? 

Link to post
Share on other sites

One solution is to build a router/gateway (or use NGINX) which redirects the traffic to the correct service based on a regular expression and the resource path, which mean that you have only one port open to the public and the services each have their own internal port. It also adds another level of security as well as load balancing.

 

https://www.nginx.com

 

UniGUI also uses REST although might it be only one resource namely "/event".

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...