Comments (6)
Rest API mit Python vs Go
Vorteile von Python:
- mehr libraries
- Komplettpaket mit Django + Django Rest Framework
- habe schon ein bisschen mit Django und relativ viel mit Python gearbeitet
Vorteile von Go:
- Performanter
- Skalierbarerer, dank concurrency features
- man findet viele Artikel wie diesen hier: Why we switched from Python to Go , ich würde es deshalb schon gerne wenigstens mal ausprobieren
Insgesamt ist also Django die wahrscheinlich schneller zu Entwickelnde Lösung und Go die elegantere, schnellere Lösung, die dafür aber etwas mehr Vorbereitung und Einarbeitung erfordert.
from vi-sense.
haben uns jetzt für Go entschieden
from vi-sense.
Some Input on how to build a REST Service in Go
Gin-Gonic REST Framework
https://github.com/gin-gonic/gin
https://play.golang.org/p/Y0sDeUcLjv
REST Server
https://github.com/moethu/codenutrition/blob/master/main.go#L65
https://github.com/moethu/codenutrition/blob/master/main.go#L136-L145
Serving static files
https://github.com/moethu/codenutrition/blob/master/main.go#L61
https://github.com/moethu/codenutrition/blob/master/main.go#L100-L103
web sockets
https://github.com/moethu/webg3n/blob/master/main.go
https://github.com/moethu/webg3n/blob/master/server.go
JSON Responses
https://github.com/gin-gonic/examples/blob/master/basic/main.go#L22-L30
Testing in go
https://github.com/gin-gonic/examples/blob/master/basic/main_test.go
from vi-sense.
Go Project Layout
https://github.com/golang-standards/project-layout
Go Podcast
from vi-sense.
from Slack: minimal docker container
https://rollout.io/blog/building-minimal-docker-containers-for-go-applications/
another article covering that topic
https://medium.com/@diogok/on-golang-static-binaries-cross-compiling-and-plugins-1aed33499671
from vi-sense.
minimal docker image process is also explained in the official docker docs:
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
from vi-sense.
Related Issues (20)
- set range of clipping plane sliders to edges of model
- show active camera and what cam you can switch to
- History styling refinement
- adapt vuetify number fields in option pane for validation and consistent look
- timeline anomalies sometimes buggy
- anomaly info on hover
- improve sensor "on selection" css in infopane
- make arrow always visible
- empty babylon cache
- make scrolling in arc cam faster
- sensor init highlighting glitch when clipping planes are active HOT 1
- timeline pin/brush tool sometimes mixed
- show account symbol in modelview aswell
- timeline implement smart anomaly reusing and handling to improve performance
- selecting sensors in init state is possible
- shader color only updates after a sensor has been selected (graph is generated?)
- disable sensor limits api calls and sensor init in live version
- showtime todos
- Project logo graphic HOT 1
- unable to build HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vi-sense.