Golang At Dailymotion’s Open Source Application “Asteroid”​

Reemi Shirsath
2 min readOct 15, 2020
GolangATDailymotion

Before understanding why Golang is used in Dailymotion, let’s understand what is Dailymotion

What is Dailymotion?

Dailymotion is a global video streaming service with a network of over 250 million people. Dailymotion is built on a clever player, using an intuitive algorithm and recommendation made by video experts. Dailymotion is said to be a one-stop place for stories from the best storytellers, creators with one heightened experiencing video.

What is Asteroid?

The asteroid is an open-source application developed by the Dailymotion team to manage their Wireguard server.

Dailymotion team used OpenVPN in order to access the infrastructure resources frequently. One day they decided to try Wireguard and immediately they were able to see various benefits like reduced latency, improvement in performance, ease, and faster setup. In Wireguard after the initial testing, the team faced challenges in adding and removing the users which were needed to be done manually, and in order to ease the process by automating it, “Asteroid “ was created.

Dailymotion Team said -

The app is written in Go and has greatly improved our efficiency when adding and removing access to our infrastructure.

The Asteroid was developed using Golang, due to its feature like

  • Small footprint
  • Easy to deploy as a single binary
  • Fast Compilation
  • High Performance
  • Concurrency
  • Scalability, etc

Following are some of the commands used in Asteroid:-

  1. For adding a new user $ asteroid add -address=”172.16.0.7/32" -key “eXaMPL3Ave8q+kmNVmiw4KdKiXc//M0EGOY6K9C14nw
  2. For removing the user $ asteroid delete -key “eXaMPL3Ave8q+kmNVmiw4KdKiXc//M0EGOY6K9C14nw
  3. To view users added to the server $ asteroid view
  4. The help command $ asteroid -h
  5. For Configuration $ cp config/asteroid_example.yaml $HOME/.asteroid.yaml

“Asteroid” was developed as an Open Source in order to give back to the open-source community

Read more about the article from the original source here

You can also read more articles about Golang here-

Author: Reemi Shirsath, COO @ Scalent.ioA Golang Specialized Development Company.

--

--

Reemi Shirsath

𝘾𝙊𝙊 @ 𝙂𝙤𝙡𝙖𝙣𝙜 𝙎𝙥𝙚𝙘𝙞𝙖𝙡𝙞𝙨𝙚𝙙 𝘿𝙚𝙫𝙚𝙡𝙤𝙥𝙢𝙚𝙣𝙩 𝘾𝙤𝙢𝙥𝙖𝙣𝙮- Scalent.io