HNHacker News
TopNewBestAskShowJobs

kureikain

1,285 karma · joined January 23, 2010

https://mailwip.com for email forwarding

Reach out at vinh@mailwip.com

AWS EC2 price API https://ec2.shop - ec2 price api

submissionscomments
kureikain··on Tell HN: Gmail rate limiting emails from AWS SES
This is bad advice.

SES is the best among the provider.

They treat spam very seriously, compare to other. You would need to maintain a baseline, failure to do so will get the account into soft-susspend or permanent suspended quickly.

AWS, being an engineering focus product, provider tooling and automated around bouncing, spam reporting handling. Having sophisicated tooling help user deal with that.

They strongly againtst and not suggest end-user to buy dedicated IP. Where as other providers always want user to pay more for "dedicated ip" to "get better delivery".

AWS has procedure, best practice to encounrage slowly warmup when sending mass volume. They had their own rate limit (14 messages per second by default), move the account out of sandbox, a good domain/sender verification.

They are the best among providers when it comes to email.

Sometimes they appear to be worst than others, but that is a specific case. The way email works will always have false positive. If user decided the email is spam(even it isn't) and keep reporting it may appear in a certain spam list.

kureikain··on Every phone should be able to run personal websites
In 2012, I need to sync data between a set-top box device(a karaoke machine) and an ios/android device to transfer SQLite data between them.

The ios/android app literally spin up a HTTP server run on the phone, the device just hit it to download file up to 20MB. I was dumb and didn' think much, and it just works. It works so well I never pay attention to it. Eventually the app evolve where the entire config is push this way, one can open the app, edit config, and it save these into XML file. The setipbox will download that XML file.

Then even better, there is a webserver run on the phone, where one on the same wifi network can hit it and edit all the config on a very simple website instead of using the app UI. Such as upload file from your desktop into the phone(the song book).

Of course, the app needs to be running for all this to work. When the app close, the webserver is also shut down.

So yes, even in 2012 on those cheap devices, one can run a full feauted webserver on the web server.

kureikain··on Hetzner launches three new dedicated servers
I got the same issue as well. They randomly rebooted and still not sure what to track.

Everything is normal such as temperature, cpu load etc. the load is very idle. The server is indeed an auction one though.

Other non auction one has been rock solid.

kureikain··on Ask HN: Those making $0/month or less on side projects – Show and tell
https://ec2.shop

A website to check price of ec2 instance. support a `curl` to check and compare on-demand, spot and reverse.

I made it because everytime I have to wait for AWS to load their pricing page which takes forever. and require awakard navigation around between region, previous instance

kureikain··on Ask HN: Those making $500+/month on side projects in 2023 – Show and tell
https://mailwip.com email forwarding with extra stuff like webhook, full inbox log, SMTP support, and "email to blog"

I made this because every time when I start a project and bough a domain and setup email. first thing. So I scratch my own itch :).

kureikain··on Production Twitter on one machine? 100Gbps NICs and NVMe are fast
Not to the extreme of fitting everything into one machine but I have explorer the idea of separate stateless workload into its own machine.

However, the stateless workload can still operate in a read-only manner if the stateful component failed.

I run an email forwarding service[1], and one of challenge is how can I ensure the email forwarding still work even if my primary database failed.

And I come up with a design that the app boot up, and load entire routing data from my postgres into its memory data structure, and persisted to local storage. So if postgres datbase failed, as long as I have an instance of those app(which I can run as many as I can), the system continue to work for existing customer.

The app use listen/notify to load new data from postgres into its memory.

Not exactly the same concept as the artcile, but the idea is that we try to design the system in a way where it can operate fully on a single machine. Another cool thing is that it easiser to test this, instead of loading data from Postgres, it can load from config files, so essentially the core biz logic is isolated into a single machine.

---

https://mailwip.com

kureikain··on Hacker News Insight
In the list of the top 10 users who got most upvote, one of the user is mooreds who runs an amazing newsletter call "Letter to a new developer"

https://letterstoanewdeveloper.com/

Highly recommend to follow mooreds and his newsletter. It's great that he spend his time to tailor and help the new developer.

Not affiliate with mooreds in any mean just a happy audience.

kureikain··on Ask HN: One of our Azure accounts was hacked – how to negotiate the bill?
Try to contact Microsoft support immediately.

Don't rely on the distributor/vendor, they act very slowly.

You're a customer of Azure, you can contact them by any mean, the fact you pay through a distributor doesn't change that relationship.

So I would open a Azure support, and also will try to find Azure team on Twitter/Hacker News etc and contact them politely for help.

There is no way you would have to pay this bill. They will sort out something or even waived it if it's the first time.

kureikain··on Ask HN: I have education budget to use before year end, how should I use it?
If you're a Software Engineer I suggest to use it to get some Network Certification.

If you're into SRE, I would suggest go AWS certificate route.

Why? Because ebooks you can buy or borrow from library easily or read online. But getting certs you need to pay with real cash. Learning for these certs usually leads to down the road opportunity and you get discount on next certs etc.

kureikain··on Ask HN: What is the most impactful thing you've built?
I built an email forwarding app[1] which now all of my engineer fiends and my family used it to signup for random services that ask their email. I also use it to route email to both me and my wife such as biz@ourdomain or finance@ourdomain insurance@ourdomain etc

---

[1] https://mailwip.com

kureikain··on Ask HN: What are your “scratch own itch” projects?
My email forwarding[1] is the one I most proud of. As every engineer, I had a bunch of side projects with many domains, anytime it comes up I have to do the dance of setting up email.

I tried use some existing email forwarding service but always something come up. I decided to roll my own and eventually start a SaaS.

The second ons is my newsletter[2], it runs on my custom static site generator. It use mailchimp to store user data since I don't want to deal with GDPR etc. But all the actual email handling is using my own custom code.

---

[1]: https://mailwip.com

[2]: https://betterdev.link

kureikain··on Does anyone else finds AWS and other Amazon services overly complicated?
to add salt to the wound, there is a certain service you have to use and provision on us-east-1...such as cloudfront...where you already had the same ACM cert in us-east-2.
kureikain··on Does anyone else finds AWS and other Amazon services overly complicated?
I though its just me who find it overly complicated.

With people who use AWS SDK its all abstracted out. But there is time I just want to send a damn `curl` to download a S3 file and yes, doing the dance in bash isn't easy.

There is time I wrote a Lua plugin for openresty to fetch s3 and. I have to trial and error with lot of debugging. The ordering. the timestamp format...all of that...

kureikain··on Crunchy Bridge's Ruby Back End: Sorbet, Tapioca, and Parlour
thank willl.

When I investigate in Crystal I found your github and your Posgres driver.

kureikain··on Launch HN: SimpleHash (YC W22) – API to query digital assets
I worked on similar project https://openstory.io/data-api we can help you achive that. We're still in beta-testing right now but we do have capability to find 3D models.
kureikain··on Leveraging mispriced AWS spot instances
I run a service that has an API. which can help get spot price https://ec2.shop/

Simplify do:

curl 'https://ec2.shop?region=us-west-2&filter=m5&json' | jq

You can pipe it to whatever your system store to get the real time price without dealing with AWS Price API

kureikain··on Sending UDP Messages in Node.js Without DNS Lookups
I haven't read the article yet but the problem I had back then running into UDP with DNS on K8S is that it might consume the UV thread pool and exhausted it.

There is only 4 UV threadpool, and DNS resolution use it. When using service with low ttl or if for wahtever reason bug or something and if node has to resolve DNS every time under highload, it's very quickly consume all of thoese 4 UV thread pool.

kureikain··on Integrating with Fastmail
I love fastmail and its REST api but also at the same time I love to use google stuff like google docs, calendar etc, google voice. Technically I can use all gmail service without using a gmail account but it's always less intuitive somehow and always something break here and there when people invite or tag you in drive or google docs.

So I ended up build an email forwarding service, it runs on my own domain, forward email[1] back to my personal gmail. So I still have full control at my own domain level, have the flexibility that gmail give me, and have a REST api to access email.

Having this access REST API[2] in hand, I have been thinking I maybe able to scrape bank alert email to build out a a read-only API for my own banking transaction.

---

[1]: https://mailwip.com

[2]: https://mailwip.com/api/#introduction

kureikain··on Ask HN: Companies of one, what is your tech stack?
I used a weird stack of:

- Rails: so I have a UI quickly together with some admin and a interactive shell to allow me interact with the app easiser - GoodJobs:https://github.com/bensheldon/good_job Used this for any Rails based job - Postgres for everything. No Redis. I found redis is a source of pain when it misbehave and reach max mem with eviction policy. When Redis mem is big, restart it take quite a bit of time. - Huge server: I rent hetzner server and scale vertically. - Golang + sqlc: I used Rails SQL schema to pair it with golang sqlc https://sqlc.dev/ it makes write SQL way easier - Stimulus - Docker Compose for Rails deployment - SCP/Systemd for go-based servic

https://mailwip.com is my email forwarding saas app.

kureikain··on Ask HN: What interesting problems are you working on?
Im building an readonly API for bank transaction without reverseiing their internal ui but relying on alert transaction email and parse it to build transaction.
kureikain··on Stripe has decided to nuke my entire business
OP: I have even scraier email where Stripe decide to ban my account and it happens twice.

https://news.ycombinator.com/item?id=21306225 https://news.ycombinator.com/item?id=26320429

In both case https://news.ycombinator.com/user?id=edwinwee Edwinww is a huge help and Im highly recomend to reach out to him.

Without Edwinwee my SaaS might never see life.

kureikain··on Ask HN: Do you use foreign keys in relational databases?
I used to scare of it thinking why do I need it? everytime I delete sth it annoying me. I read blog post of GIthub not using FK key, and try to convince myself that FK isn't worth it.

One day, I decided let try this out. And turning out it wasy easiser than I think. When delete data just make sure to use cascade or ensure its associated data is deleted, which make sense.

Once I embrace it, FK now becomes my friend to enter data consistency, I cannot imagine how did I live without it before.

kureikain··on Some Authy 2FA accounts were compromised in Twilio data breach
Due to this I wrote my own tool call bima https://github.com/yeo/bima which use SQLite, run locally, and can sync encrypted blob to server.
kureikain··on Deno raises $21M
sqlc.dev make it way easier to deal with db
kureikain··on DNS Toys
Does this configured to handle DNS amplification attack our of the box?
kureikain··on Analysing Data in Web3 with SQL
Saying this

> Clickhouse (instead of Postgres), so most queries are orders of magnitude faster.

is a bold statement. They designed very differently.

Try to do O(1) look up with a primary key and see which one is faster?

Clickhouse shine in batch queries where you retrieve multiple row at a time. Its 30x faster than Postgres from my benchmark

Clickhouse sucks when you need data integrity, primary key can be duplicated. People use MergeTree engine to dedupe, but even so, dedupe doesn't guarantee the absence of duplication primary key. So at query time you have to call Aggregate Function.

Inserting small data frequently will also make Clickhouse choke. You cannot simply have it accept random write. Always have to batch.

But good thing is ClickHouse has amazing integration with Postgres such as replication through logical replication, foreign data wrapper so you can query Postgres table inside Clickhouse

kureikain··on Ask HN: Who is hiring? (May 2022)
Steath Startup | Blockchain/Go/React | Remote(anywhere) | Contractor/FTE REMOTE - We're a fully remote company

We're working on a search engine tailor to blockchain to help users explorer on-chain information accurately. We label to transactions with some logic to bring deep analysis to the end user. We want to make blockchain like a Twitter feed.

We're looking to hire someone can work across the stack, take it end to end from front-end(React) to backend(Go). We used TypeScript/React on front-end, Go/Rust for backend, Postgres for OLTP, Clickhouse for datawarehouse, Nats for message and queue.

Many proble that we're trying to solve isn't something can easily find with a google search or stackoverflow. So lot of stuff you will have to research, understand about blockchain and protocol such as Uniswap/Sushiswap.

The work is exiciting and very challenging. You will work directly with me(https://github.com/v9n and I'm also founder of mailwip.com another project that launched on Hacker News last year) and my small team of 2 designers and 2 engineers.

If you are interested and want to learn more, reach out vinh@getopty.com

kureikain··on The Twelve-Factor App (2011)
It's usually rely on some globa mechanims by the underlying architecture.

Example, if it's AWS it may rely on ec2 instance role, to allow it access to the secret manager.

If it's kubernetes, it can be done through k8s token mount, basically allow token in namespace access the vault, and the token(which is generated and manage by k8s, which is just a JWT btw) is mounted into your pod.

kureikain··on Ask HN: Who is hiring? (April 2022)
Steath Startup | Blockchain/Go/React | Remote(anywhere) | Contractor/FTE

REMOTE - We're a fully remote company

We're working on a search engine tailor to blockchain to help users explorer on-chain information accurately.

We're looking to hire someone can work across the stack, take it end to end from front-end(React) to backend(Go). We used TypeScript/React on front-end, Go/Rust for backend, Postgres for OLTP, Clickhouse for datawarehouse, Nats for message and queue.

Many proble that we're trying to solve isn't something can easily find with a google search or stackoverflow. So lot of stuff you will have to research, understand about blockchain and protocol such as Uniswap/Sushiswap.

The work is exiciting and very challenging. You will work directly with me(https://github.com/v9n and I'm also founder of mailwip.com another project that launched on Hacker News last year) and my small team of 2 designers and 2 engineers.

If you are interested and want to learn more, reach out vinh@getopty.com

kureikain··on A Foolish Consistency: Consul at Fly.io
I have been burn by Consul countless time and advise to not actively using it.

Google around company has down time with consult

https://www.protocol.com/newsletters/protocol-enterprise/rob...

https://danveloper.medium.com/on-infrastructure-at-scale-a-c...

I had use consul extensively in 2016-2017 with consul template.

The problem with consul is it's very easy to reject connection. Accidently have a node with too old or too new version join and entire cluster will be down. Which can happen easily in an autoscaling env.

Another issue is again, agent takes a lot of time to be cleanedup and removed, say in autoscaling vm where node come and go all the time you ended up with so many dead node on consul ui. Again, this is 2017 so It might changed now.

I have been replace consul with something suprisingly simple, and I think in retrospective that's all I want.

A local process run a key value API on top of a local database(can be SQLite or anything up to your taste. Its replace its state with a central server.

If the central server is down, the local agent still has its state to continue serving stale data.

← PreviousPage 2 of 17Next →