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.
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:
ExpediaGroup’s set of libraries is the most popular toolkit for running GraphQL in 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
According to the Spark website, it positions itself as an alternative to NodeJS/TypeScript world.
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
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
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