U
U
Untiwe2021-12-13 09:18:44
API
Untiwe, 2021-12-13 09:18:44

What is the best way to make a small API?

There is a task to make a mini-server in C # under linux, it will have 3-4 commands and a database for 2-3 tables. It seems to me that using ASP for this is like "shooting sparrows with a cannon". Maybe there are more lightweight solutions, or ASP is fine here?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vasily Bannikov, 2021-12-13
@Untiwe

Not asp, but asp net core.
In general - why not? For small APIs, version 6 even has a new syntax: ASP NET Core minimal api

V
Voland69, 2021-12-13
@Voland69

If you know how to sharp, then ASP.NET webapi is quite ok.
If you want to play around, you can look at go, for example. The language is compiled, going into a static binary.
Solutions on Node.js or Python (django) IMHO should not be considered - both there and there will be a virtual machine / interpreter, that is, there will be no fundamental difference with sharp, so you can take a familiar stack.

A
Alexander, 2021-12-13
@Adler_lug

php?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question