Skip to content

Instantly share code, notes, and snippets.

# get the logs
micro logs helloworld
package rand
import (
"math/rand"
"time"
)
const charset = "abcdefghijklmnopqrstuvwxyz" +
"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
@asim
asim / projects.go
Created June 10, 2020 09:19
Micro Projects
package main
import (
"context"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
@asim
asim / pitch.md
Created June 1, 2020 13:44
My first pitch

First Pitch - October 20th 2014

I'll get straight to the point. Over the past year I've built a new platform at Hailo addressing some of the major issues plaguing developers and businesses in the industry. It's a globally scaling distributed microservices based architecture utilising technologies like Go, Cassandra, RabbitMQ, Zookeeper and AWS. We've had extreme success with the platform and launched 140 services into production since its inception last year.

Microservices are incredibly conducive to programmatic productivity and it shows in the design as we've had developers go from zero to production in around 15 minutes when doing something fairly straight forward and half a day when addressing more complex designs.

More so than that we've found what really made the difference was the ecosystem which we designed around the services. Libraries that abstracted away location of shared resources such as databases and queuing systems, a mechanism for service discovery baked into the platform, message routin

[![Sourcegraph](https://sourcegraph.com/github.com/micro/go-micro/-/badge.svg)](https://sourcegraph.com/github.com/micro/go-micro?badge)
@asim
asim / events.go
Last active April 30, 2020 14:28
The events interface
// Package events is for event streaming
package events
// Events is an event streaming interface
type Events interface {
// Stream returns a event stream by ID
Stream(id string, ...StreamOption) Stream
}
// Stream represents an event stream
package main
import (
"fmt"
"github.com/micro/clients/go/client"
)
type Request struct {
Count string `json:"count"`
{
"ref": "refs/heads/master",
"before": "07b8534f3fa3d97dc18af7aaea89a50c8835ff27",
"after": "21291f4906f78dff2c19d5df8a071109f163673f",
"repository": {
"id": 191024669,
"node_id": "MDEwOlJlcG9zaXRvcnkxOTEwMjQ2Njk=",
"name": "services",
"full_name": "micro/services",
"private": false,
{
"ref": "refs/heads/master",
"before": "07b8534f3fa3d97dc18af7aaea89a50c8835ff27",
"after": "21291f4906f78dff2c19d5df8a071109f163673f",
"repository": {
"id": 191024669,
"node_id": "MDEwOlJlcG9zaXRvcnkxOTEwMjQ2Njk=",
"name": "services",
"full_name": "micro/services",
"private": false,