feat: add go profiling scaffold

This commit is contained in:
Jan Halfar 2023-06-28 16:07:34 +02:00
parent e1baecd6a5
commit 5a882ccd1f
10 changed files with 2726 additions and 2608 deletions

View File

@ -2,13 +2,19 @@
id: index
sidebar_position: 1
---
import { GoPlayground } from '../../src/components/GoPlayground';
# Backend Guide
A collection us useful resources for Go backend developers
- [links to useful Go resources in other places](backend/rtfm)
## Stack
- https://nats.io/
- https://www.mongodb.com/
- https://www.postgresql.org/
- https://temporal.io/
And of course "[Stuff](projects) we wrote, because nobody else wanted to"
<GoPlayground
id="_HLNjk_HaBE"
proportion={16/10}
/>

View File

@ -0,0 +1,4 @@
# Profiling Go applications
A general overview can be found here: https://go.dev/doc/diagnostics#profiling

View File

@ -0,0 +1,7 @@
# runtime pprof
- https://pkg.go.dev/runtime/pprof
- https://pkg.go.dev/net/http/pprof
- https://github.com/google/pprof

View File

@ -4,9 +4,10 @@ sidebar_position: 2
---
# External documentation resources
## go
## Go
- https://go.dev
- https://github.com/avelino/awesome-go#readme
## http

View File

@ -26,7 +26,7 @@ When it comes to writing backend services we have decided for Go https://go.dev
### Foomo projects supporting development with Go
- [keel](libraries/keel) - opinionated way to run services
- [keel](keel) - opinionated way to run services
- [gotsrpc](gotsrpc) - rpc framework / code generator
- [gograpple](gograpple) - human friendly way to debug go programs running in k8s
- [webgrapple](webgrapple) - a development proxy

View File

@ -4,7 +4,7 @@ Sometimes things go wrong and a service does not respond anymore. Be it because
Simply put a circuit breaker has three different states:
![](/img/keel-circuit-breaker-states.jpg)
![](states.jpg)
We did not re-invent the wheel (yet), but rather used an existing circuit breaker. However, we extended the functionality a bit. More on that later. For referance, here are links to the [underlying circuit breaker](https://github.com/sony/gobreaker) and some more [information on circuit breakers in general](https://learn.microsoft.com/en-us/previous-versions/msp-n-p/dn589784(v=pandp.10)?redirectedfrom=MSDN).

View File

Before

Width:  |  Height:  |  Size: 404 KiB

After

Width:  |  Height:  |  Size: 404 KiB

File diff suppressed because it is too large Load Diff

2638
yarn.lock

File diff suppressed because it is too large Load Diff