DEV Community

A URL Shortener Service using Go, Iris and Bolt

Gerasimos (Makis) Maropoulos on May 28, 2019

A URL Shortener Service using Go, Iris and Bolt If you follow the social media sites like Twitter and Google+, you’ll have noticed that ...
Collapse
 
chromadream profile image
Jonathan Nicholas • Edited

Pretty cool tutorial, I like it.

However, Iris should be avoided tbh, not because Go devs mostly hated frameworks, but because the author has a tendency to rewrite Git history, removing contributors' contributions.

Read more: reddit.com/r/golang/comments/b481q...

Edit: I messed up, and I'm sorry.

Collapse
 
kataras profile image
Gerasimos (Makis) Maropoulos

Hello, I am glad you liked it!

About your comments, I am honesty believe that you are one of those people that don't really want to deflame Iris, you just fell into a scam in the middle of a personal attack. When you have time, Check the repo by yourself, including the history, the prs and the code and write down your results, please.

Also, check out one of my newest projects, Iris depends on that for its routing: github.com/kataras/muxie, I am waiting for your feedback if you really care so much about my development process.

Another good article to read is the "top 6 web frameworks for go" by usejournal.com: blog.usejournal.com/top-6-web-fram...

Sincerely,

Collapse
 
chromadream profile image
Jonathan Nicholas

Thanks for clarifying.

I got sucked into the Reddit flaming, and I'm sorry for it.

Collapse
 
theodesp profile image
Theofanis Despoudis

Jonathan, You are talking to the author of Iris!

Collapse
 
anaganisk profile image
Sai Kiran

You just replied to the author of Iris my man.

Collapse
 
rhymes profile image
rhymes • Edited

To create a short link, we generate a random string and use Bolt to store the original URL with our random string as the key

shouldn't the short link be some sort of hash of the URL?

Collapse
 
kataras profile image
Gerasimos (Makis) Maropoulos • Edited

You are right, however, this tutorial was for the very beginners. Devs with experience can change the algorithm with ease, it lives in a single spot in the source code. Hashing wouldn't allow to push duplicates as well, the method we use here is by giving an UUID to the link, so the link can be after linked to a database per user for example. The article was mostly written to learn how you can link a database with the logic and the actual routes by creating something all of us know, url short links. However, I am 100% open to continue by uploading a new post (when I finish the new release of Iris) which will describe more advanced features, not only hashing as tring (which is easy enough with Go) if you wanna so. Thank you for your feedback @rhymes !

Collapse
 
rhymes profile image
rhymes

I think it's fine, thanks! :)

Thread Thread
 
kataras profile image
Gerasimos (Makis) Maropoulos • Edited

You're welcome. You already gave me a push for writing more articles, including hashing, request authentication/verification and etc, make sure you follow me up :)