Below is an example of how to setup gnatsd cluster using Docker.
I have put 3 different configurations (one per gnatsd server) under a folder named conf as follows:
tree conf| package main | |
| import ( | |
| "fmt" | |
| "github.com/alexedwards/stack" | |
| "github.com/julienschmidt/httprouter" | |
| "net/http" | |
| ) | |
| func main() { |
| One | Many | |
|---|---|---|
| Synchronous | T/Try[T] | Iterable[T] |
| Asynchronous | Future[T] | Observable[T] |
Via Erik Meijer (video) and slides
####Examples:
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <title>Chat</title> | |
| <script src="https://code.jquery.com/jquery-2.1.3.min.js"></script> | |
| </head> |