Post as thread on @avivl account.
I taught my AI assistant to do SRE.
Not just "summarize logs" — actual incident response, alert analysis, and engineering metrics.
Role Overview
Jimini Health is seeking an experienced Backend Software Engineer to drive key infrastructure and API development efforts that power our healthcare platform. In this role, you'll take ownership of building robust, scalable backend systems and services that enable our user-facing applications to deliver exceptional patient and therapist experiences.
You'll focus on architecting reliable APIs, data pipelines, and cloud infrastructure, collaborating closely with Product, Clinical, and Frontend teams to design and implement secure, performant systems. As an early team member, you'll own backend development end-to-end—from database schema design to service architecture, with a strong emphasis on HIPAA-compliant infrastructure, security, and system reliability. The backend systems you build will be critical to empowering patients to access high-quality mental health care and enabling therapists to support even more people effectively. Yo
| var LRUCache = require('mnemonist/lru-cache'); | |
| var getJobPostCache = new LRUCache(1000); | |
| export const getJobPostJson = async (jobId: string) => { | |
| const job = getJobPostCache.get(jobId) | |
| if (job !== undefined) { | |
| return ({ | |
| job, | |
| isJobBelongsToThisUser: true | |
| }) |
| zplug "avivl/gcloud-project", use:init.sh |
| gmaps = googlemaps.Client(key=key) | |
| reverse_geocode_result = gmaps.reverse_geocode( | |
| (location['latitude'], location['longitude'])) | |
| now = datetime.datetime.now() | |
| directions_result = gmaps.directions( | |
| reverse_geocode_result[0]['formatted_address'], | |
| home[0]['address'], | |
| mode="driving", | |
| departure_time=now) | |
| fulfillment_text = Name + " will be home in %s" % \ |
| api = PyiCloudService(user_mail, password) | |
| location = api.iphone.location() | |
| if location['isOld']: | |
| fulfillment_text = "Can't get an accurate location for %s" % Name | |
| body = '{"fulfillmentText":"%s"}' % fulfillment_text | |
| return body | |
| // Payload is the event's actual data inserted into data stores. | |
| type Payload map[string]interface{} | |
| // Type is an Event's metadata. | |
| type Type struct { | |
| EventVersionField string `json:"event_version" valid:"notempty,required"` | |
| EventNameField string `json:"event_name" valid:"notempty,required"` | |
| } | |
| type Event struct { |
| func (c *Collector) Collect(ctx *fasthttp.RequestCtx) { | |
| defer func(begin time.Time) { | |
| responseTime := float64(time.Since(begin).Nanoseconds() / 1000) | |
| occtx, _ := tag.New(context.Background(), tag.Insert(codeKey, strconv.Itoa(ctx.Response.StatusCode())), ) | |
| stats.Record(occtx, requestCounter.M(1)) | |
| stats.Record(occtx, requestlatency.M(responseTime)) | |
| }(time.Now()) | |
| /*do some stuff */ | |
| } |
| import ( | |
| "go.opencensus.io/stats" | |
| "go.opencensus.io/tag" | |
| "go.opencensus.io/stats/view" | |
| ) | |
| var ( | |
| requestCounter *stats.Float64Measure | |
| requestlatency *stats.Float64Measure | |
| codeKey tag.Key |
| import ( | |
| "go.opencensus.io/exporter/prometheus" | |
| "go.opencensus.io/exporter/stackdriver" | |
| "go.opencensus.io/stats/view" | |
| ) | |
| Exporter, err := prometheus.NewExporter(prometheus.Options{}) | |
| if err != nil { | |
| logger.Error("Error creating prometheus exporter ", zap.Error(err)) | |
| } |