Skip to content

Instantly share code, notes, and snippets.

View philippta's full-sized avatar

Philipp Tanlak philippta

View GitHub Profile
#include <event2/buffer.h>
#include <event2/event.h>
#include <event2/http.h>
#include <event2/keyvalq_struct.h>
const char *get_query_arg(struct evhttp_request *req, const char *name) {
// Parse uri
const struct evhttp_uri *uri = evhttp_request_get_evhttp_uri(req);
const char *query = evhttp_uri_get_query(uri);
@philippta
philippta / hackernews.go
Created April 10, 2025 10:54
Flyscrape Library Usage
package main
import "github.com/philippta/flyscrape/flyscrape"
var config = flyscrape.Config{
URL: "https://news.ycombinator.com/",
Browser: true,
Headless: false,
}

This Microservice Should Have Been a Library

About 6 years ago when I was a PHP ecommerce dev, I've always wanted to work with distributed systems and microservices. They seemed so cool and the new way of architecting software systems because all of big tech did it. But now working with them day to day for about 3 years I came to realize that my initial anticipation was stupid. Well, not stupid in the traditional sense, because how could I have known what I'd get myself into.

Microservices and distributed systems have been preached to solve two major problems: Scale and scale.

So let's talk about them.