Giter VIP home page Giter VIP logo

fastapi-example's Introduction

Hi πŸ‘‹, I'm Kanata Miyahana

Backend and infrastructure engineer in Tokyo

My Activities

trophy Anurag's GitHub stats Top Langs

Technical Staff

DevOps

kubernetes docker aws

Programming Languages

go python javascript java rust

Frontend Development

vuejs bootstrap html5

Backend Development

spring kafka rabbitMQ

DataBase

mysql postgresql cassandra elasticsearch

Others

grafana kibana bash circleci django firebase flask git heroku linux

References

fastapi-example's People

Contributors

dependabot[bot] avatar k3forx avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

fastapi-example's Issues

Can't store memo in Japanese

When I try to save the memo in Japanese, I got an internal server error.
image

Log of fastapi

2021-05-27 02:18:56 [                 post_new_note] Create a new note: {'title': '買い物', 'description': 'コーラを買 う'}
2021-05-27 02:18:56 [       __make_connection_to_db] Create a new connection
2021-05-27 02:18:56 [       __make_connection_to_db] The connection is successfully established
2021-05-27 02:18:56 [          execute_commit_query] Executing query...
2021-05-27 02:18:56 [            __close_connection] Close the connection
2021-05-27 02:18:56 [          execute_commit_query] Error occurred while commting query: (1366, "Incorrect string value: '\\xE8\\xB2\\xB7\\xE3\\x81\\x84...' for column 'title' at row 1")
2021-05-27 02:18:56 [                 post_new_note] Error occurred while creating a note: (1366, "Incorrect string value: '\\xE8\\xB2\\xB7\\xE3\\x81\\x84...' for column 'title' at row 1")
2021-05-27 02:18:56 [                          send] 172.24.0.1:56904 - "POST /notes HTTP/1.1" 500

Use sealed secret

Why

It's not good practice to set credentials as configmap

What

Use sealed secret to manage secret

Correct metrics

For application monitoring, the following metrics are useful

  • The number of running applications
  • The number of requests
  • The number of 4xx errors
  • The number of 5xx errors
  • The time to process requests (latency)

Count log level

Why

To monitor the applications

What

  • Count log level
  • Expose the metrics
  • See the metrics with Grafana

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.