What are services?¶
NetsBlox provides users access to server side functionality through enabling users to make synchronous remote procedure calls (RPCs) which are grouped into “services”. This enables users to:
- gain access to real-world datasets including climate data from NOAA and weather data from OpenWeatherMap.
- use a variety of third-party APIs including Google Maps, ThingSpeak, ParallelDots, and Azure Translation.
- leverage capabilities provided by NetsBlox itself such as cloud variables and cybersecurity capabilities! Services have been designed to be simple to implement and include rich functionality including strict typing, help message generation, and message-sending capability.
Are there different types of services?¶
At the time of this writing, there are three different types of services in NetsBlox:
- User-Defined Services. These services are created using the ServiceCreation service from within NetsBlox.
- Auxiliary (Private) Services. These services are hosted by other servers and enable users or classes to have their own private services. An example can be found here.
A comparison of the different types of services is given below:
How can I contribute a native service?¶
If you are interested in contributing a (native) custom service back to NetsBlox (or in your own fork), I would recommend starting with the simple example and then checking out the Best Practices for NetsBlox Services.