Known for its revolutionary SmartBridge functionality, ARK is one of the top 20 cryptocurrencies and technologies offering promises going into 2018. Its SmartBridge functionality has allowed different blockchains to interconnect to each-other. This technology links different blockchains through a bridging method, which creates simultaneous utilization of multiple blockchain networks by simplifying the process and removing the need to trade tokens in order to use other networks.
In a recent update, ARK was focused on upgrading it’s new API (v2) making it easier for developers to extend the technology. API v2’s initial development began with ‘Restify’ as it was the most suitable choice from the Node.JS field in regards of API development.
This solution did not prove to be sufficient, and ARK decided to change it for a new API. The new alternative, ‘Hapi’, offered a more suitable framework and plugin system, allowing ARK to use every version of the API as a plugin, making whole API removal possible. This also fitted in with ARK’s intention to simplify the ease of use with the ARK Core v2. Prior to API v2, v1 did not adhere to any official standards and was not RESTful in any way.
The API v2 will be fully RESTful and follow the JSON API specifications as closely as possible. This means that when v2 kicks in, all API endpoints serving resources like blocks and transactions will act like collections. This update will enable users to easily work out how the API endpoints function without a need for constant inspection of the API documents, as the structure will be standardized.
Another issue with publicly accessible API’s is that they can be used to perform server attacks by flooding them with requests. This is currently causing far too many problems and destroying the database at the same time. The implementation of Request Throttling will attempt to help prevent this issue, as it prevents the API from being flooded. Users will be able to check the efficiency of request throttling by performing a request to an API endpoint and checking the response headers.
The caching of API calls will also assist in reducing the stress on the database, as much of the blockchain’s data is immutable. ARK leverages Catbox to provide a wide variety of drivers for popular caching solutions like Redis, Memcached or Riak. Caching is in place to stop the need for a response to having to be generated more than once, thus creating more efficiency. ARK’s new API v2 aims to boast many new features, including better data handling, providing throttling and caching right out of the box.
Source: Read Full Article