Giter Club home page Giter Club logo

malusev998's Introduction

Hi, My name is Dusan Malusev 👋


GitHub

I'm backend software engineer from Serbia with relevant experience in building various backend systems including payments, advertizment and other web applications. Maily Go and PHP developer with proven track record in both of them. Proud member of github oranisation BrosSquad

Social Media

     


Technology stack:


Frontend:


Svelte  Typescript  Vue 

Backend:


Rust  Golang  Node.JS  PHP  Laravel  Typescript  ASP NET Core  ASP NET Core  C 


Databases:


PostgreSQL  MariaDB  MongoDB  Redis  



DevOps:


Ansible  Terraform  Terraform  Vagrant 



Github Stats

Languages

malusev998's People

Contributors

codelieutenant avatar deepsource-autofix[bot] avatar deepsourcebot avatar github-actions[bot] avatar sourya-deepsource avatar web-flow avatar

Stargazers

 avatar

Watchers

 avatar  avatar

malusev998's Issues

Database Setup

Every website/blog needs some kind of database, mine is no exception. Previous website used PostgreSQL ans it's primary database. It served me very well and my plan is to continue to use it in this rewrite.
After some research for database drivers, a few really good ones popped onto the scene.

  1. Diesel

  2. tokio-postgres

  3. sea-orm

  4. Sqlx

  5. I really wanted to try Diesel but it had one flow, it is not async, which is kind of a deal braker as I intended to run my API on a single CPU instance on Digital Ocean Cloud. Having no async support and having to block the executing thread will degrade performance for my API even if my traffic is low.

  6. Tokio-Postgres is async library for postgres and tokio, as the name suggests, and since I'm using tokio as my future executor, this would be a really good choice, but it had one flow, no compile time query execution.

  7. SeaORM - It's quite new

  8. SQLx, Does all the things mentioned above and it's well maintained and documented with examples.

My Choice: SQLx

App Shared State

Find a way to integrate dependencies into the axum framework. (App State)

Implement CLI Argument

After writing initial setup for config and logging, some limitations have been found.
Namely, configuration path is current set to the current executable path, this is not ideal for
production environment and docker deployment. Ideally configuration path should be received from command line argument like:

api --config-path=/etc/api/config.toml

Overriding configuration path is all well and good, but must not make development slower, so the propose is to generate default paths for dev, release and dist profiles defined in cargo
e.g.

Dev, Release:

./config.toml
Having configuration file in the same directory as the codebase is really nice to work with.

Dist:
/etc/api/config.toml
Since dist cargo profile is meant to be run in Linux environment (preferably in Container) is will be nice to set default value where container expects to find configuration.

Many more flags could come at the later stage of the product development, so bringing library like clap will be beneficial.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.