|
You are here |
rakyll.org | ||
| | | | |
pauladamsmith.com
|
|
| | | | | This is a simple and easily generalizable way to put an upper-bound on the maximum number of simultaneous clients to a Go net/http server or handler. The idea is to use a counting semaphore, modeled with a buffered channel, to cause new clients to... | |
| | | | |
www.integralist.co.uk
|
|
| | | | | Introduction Four ways to skin a cat How does the adapter work? Why is this interesting? Summary/Breakdown Introduction Here is some code that demonstrates the typical 'hello world' for a Go based web server: package main import ( "fmt" "net/http" ) func handler(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello %s", r.URL.Path[1:]) } func main() { http.HandleFunc("/World", handler) http.ListenAndServe(":8080", nil) } Note: http://localhost:8080/World will return Hello World For most people,... | |
| | | | |
jbalogh.me
|
|
| | | | | [AI summary] Mozilla is introducing push notifications for the web, enabling websites to send messages to users across multiple platforms, with details on the API and server-side implementation. | |
| | | | |
www.nageshdn.com
|
|
| | | Cron utility in Linux has been helpful to schedule tasks to run at a scheduled time. A few of the disadvantages of cron are If Instance/server is not available/down at the cron schedule, cron doesn't run those tasks until the next event is triggered If the cron task need to run other tasks after running the main task at the scheduled time, there are only hacks to create this dependency If the cron task needs to run within a given time interval to avoid running at the same time If a cron task needs to run after an event, such as 3 minutes after the system restarted. Cron doesn't support this functionality To check the status of the last cron task to see if it ran/failed with logs | ||