https://matej.laitl.cz/bench-rust-kotlin-microservices/ Stress-testing Kotlin’s Http4k, Ktor, and Rust’s Actix Web
Author: Rostyslav Bulyga
For the last month I’ve been experimenting with the Rust programming language and it resulted in this repo: https://github.com/sl4wa/recipe-search-engine-rust What it basically does is indexing sample data in the ElasticSearch and searching the data via GraphQL API.
Rust seems to have only one implementation for the GraphQL protocol. https://github.com/graphql-rust/juniper Most current issues are related to the mismatches in the return types and declared return types. Language is really strict in terms of typing. A good intro into language: https://stevedonovan.github.io/rust-gentle-intro/readme.html
ExpediaGroup’s set of libraries is the most popular toolkit for running GraphQL in Kotlin https://github.com/ExpediaGroup/graphql-kotlin There are some good examples provided. One of them is using Spark Framework for serving data. It can be a good starting point for a small project https://github.com/ExpediaGroup/graphql-kotlin/tree/master/examples/spark According to the Spark website, it positions itself as an alternative to […]
Even though Rust’s main concept is system programming we can write some simple APIs using it. Instead of using official ElasticSearch library chosed this one https://github.com/elastic-rs/elastic In the official client all API functions are async only and I don’t need async funtionality at the moment.
As a part of the learning strategy was trying to build an API in Kotlin that interacts with ElasticSearch. Found a library for this purpose https://github.com/jillesvangurp/es-kotlin-wrapper-client It connects to the local server with no issues. Also, there’s a good manual and a demo project called “Recipe Search Engine” built on top of Ktor framework https://www.jillesvangurp.com/es-kotlin-manual/index.html