Articles Coucou

Tech Meetups in Montreal: Introducing Scala.js at Scala Montreal

February 3rd, 2014 | by amandafong

posted in Company, Culture, Events, Montreal

Scala Montreal meetup at Wajam

SCALA MONTREAL

Last month, Jonas Fonseca was invited as a guest speaker at the Scala Montreal meetup hosted at Wajam. He introduced the group to Scala.js, an experimental Scala to JavaScript compiler which allows developers to easily write Web applications entirely in Scala by allowing developers to call Scala code from JavaScript and vice-versa. This leads to more efficiency because more code can be reused between front-end and back-end. Link to his presentation below.

The next Scala Montreal event is going to be on Thursday, February 20. Ryan Knight from Typesafe will talk about integrating Play and Akka.  Join the meetup here.

Jonas Fonseca - Scala Montreal at Wajam

Jonas Fonseca presents Scala.js at Scala Montreal

Jonas Fonseca Github at Wajam

See more of Jonas’ presentation and some examples.

HOST YOUR MONTREAL MEETUP AT WAJAM

At Wajam, we’re helping you find recommendations from friends you trust, whenever you need them. In order to do that, we constantly innovate with new technologies. We’d like to invite you to come over to our awesome lounge so that together, we can share our best high-tech adventures. Contact us @Wajam for more details.

WANT MORE HIGH TECH ADVENTURES?

Read our latest technical blog posts about how we’ve scaled and improved our social search technology.

Tech Meetups in Montreal: Python for the Web at PyLadies MTL

January 30th, 2014 | by amandafong

posted in Company, Culture, Engineering, Events, Montreal

Last week, we at the pleasure to host two developers’ meetups at Wajam. It’s nice to see the Scala and PyLadies MTL community growing in Montreal, and we’re happy to support it with plenty of snacks (fresh fruits, cheese, pizza) and drinks (beer, tea, juice) and a 90″ TV.

Marianne Corvellec - Pyladies at Wajam

PyLadies MTL co-founder Marianne Corvellec welcomes attendees to Wajam

PYLADIES

Two guest speakers were invited to talk about the PyLadies theme of the month: “Python for the Web.”

It was Annaëlle Duff’s first talk ever and she did splendidly. She gave a live demo on how to set up a Django project and explained essential back-end concepts.

Annaëlle Duff Django 101 presentation

Nilovna Bascunan-Vasquez analyzed some of the challenges she faces as a front-end developer while working with the various layers of development, from back-end to design.

Nilovna Bascunan Vasquez presentation at Pyladies in Montreal

Click here to view Nilovna on Front-end Development or Annaëlle’s Django 101.

The next PyLadies event is going to be on Tuesday, February 18. Join the meetup here.

HOST YOUR MONTREAL MEETUP AT WAJAM

At Wajam, we’re helping you find recommendations from friends you trust, whenever you need them. In order to do that, we constantly innovate with new technologies. We’d like to invite you to come over to our awesome lounge so that together, we can share our best high-tech adventures. Send us a message @Wajam for more details.

Want more high-tech adventures?
Read our latest technical blog post about how Wajam answers business questions faster with Hadoop.

How Wajam Answers Business Questions Faster With Hadoop

January 22nd, 2014 | by xavierclements

posted in Big Data, Engineering

At Wajam, we’re helping you find recommendations from friends you trust, whenever you need them. In order to do that, we constantly innovate with new technologies. Our technical blog posts are meant to share with you what we’ve learned along our high-tech adventures.

Wajam - Share Your Knowledge

BACKGROUND

Wajam is a social search engine that gives you access to the knowledge of your friends. We gather your friends’ recommendations from Facebook, Twitter and other social platforms and serve these back to you on supported sites like Google, eBay, TripAdvisor and Wikipedia.

To do this, we aggregate, analyze and index relevant pieces of shared information on our users’ social networks. The challenge for the Business Intelligence team is not so much the storage of the vast number of logs that our millions of users are generating, as our Hadoop cluster is sizeable, rather it is how to quickly answer business questions by running Pig jobs across these entries.

As a Business Intelligence analyst who was only introduced to MapReduce (MR) jobs earlier this year I wanted to blog about how frustrating it can be to write Pig jobs to run across our Hadoop cluster containing our users’ raw logs – oh how I wanted to write that article. It would have consisted of diatribes about Pig’s horrible compile and run time error messaging, litanies of expletives relating to the sheer number of hours spent waiting for MR jobs to run across our cluster. More recent changes implemented at Wajam by one of our Business Intelligence (BI) gurus have, to a large extent, made such a programming polemic null and void. Thanks to just a little further processing of our logs and storing this rigidly formatted output, our reliance on the raw logs has decreased and with it at least the author’s Pig related profanity has lessened.

The primary goal behind these changes was to improve the speed with which we can provide a response to a business query. A secondary goal was to make our data stored on our Hadoop cluster more accessible for everyone.

ABOUT OUR PROCESS

The pipeline:

Our Hadoop cluster (HC) was and continues to be used for the storage of raw aggregated logs sent to our namenode from the Scribe servers running on top of our many Web servers and for storing the outputs of the automated Pig jobs that run upon these logs. The reporting pipeline of Pig jobs is scheduled by some Scala scripts, with the overall process summarised below:

Wajam BI Pipeline

The logs:

Much of the pipeline’s purpose is to aggregate information in the logs and regularly populate our MySQL server so that queries and alerts related to our traffic can be implemented in R. However it is often the raw logs that are queried for our adhoc requests, as our stored aggregated data may not fit the bill. It is here that our old structure was causing a sticking point.

To explain: the raw logs are broken into events, and each event has a certain amount of generic data e.g. date, timestamp, country, user id etc. A further set of fields is populated on a per-event basis. With this flexibility comes an element of complexity, for when querying these events one has to write pig jobs knowing exactly how all of the events are linked.

As an example, we have an event for every search that a user makes and one of the fields recorded is a unique search id. That same search id will carry across to other events for when we crawl our partners’ servers and for the events generated upon such successful crawls and so on and so forth.

Trawling through our memories for how all these events link together when writing a Pig script to answer a particular question regarding our users’ search behaviour can unnecessarily slow the process down.

Recent changes – of hardware and in mindset

Our solution to this problem? As there is little new under the Sun, we sought inspiration from others who are using Hadoop. LinkedIn, unsurprisingly, was a first port of call e.g. a simple, clean and clever idea like incremental processing to speed up regular Hadoop jobs.

With thoughts along similar lines, the BI team added a pre-processing step: store the collective information about every search that could be gathered from our events. As we have recently increased the size of our cluster to just under 100 nodes, the cost in space for storing this extra information was minimal. The positives of moving to this form of granular pre-processing on the other hand were manifold. Two highlights include:

1. Speed : When a business request came in previously, we often had to run Pig jobs which drew directly from the raw logs. The Pig scripts themselves are not all that difficult to write, however the run time was slowed by the sheer size of the files from which we are drawing. This load time issue was compounded when the request required us to load multiple weeks worth of data. Now a month of search data can be loaded in and processed under 2 hours, where previously an equivalent period in raw logs would have taken 3 – 4 hours or the job would simply have hung.

2. Ease of use: Conceptually it is far easier to query a rigid table like structure rather than try to join a myriad of events. This has the added benefit of making newcomers to Wajam less reticent to venture into the land of Hadoop and Pig.

Impala

Further to point 2 above and to lessen our reliance on MySQL, the next step is to add the Impala feather to our bow. Inspired by Google’s Dremel paper, the Cloudera Impala project aims “to bring real-time, ad hoc query capability to Apache Hadoop” .

Cloudera Impala is an open source Massively Parallel Processing (MPP) query engine that runs natively on Apache Hadoop” . What does this encompass? Essentially multiple clients can be used to issue SQL queries and the Hive metastore provides information as to what databases are available and the schemas associated with same (See diagram below). Then there is a Cloudera Impala process running on every datanode in the HDFS which parses up the original SQL queries and runs them on each node.

Wajam with Cloudera Impala

It is the presence of each of these Impala instances on each node and the associate distributed query engine that means MapReduce can be bypassed. As a result of being able to remove MR, there have been instances of 68x speedup as compared to Hive . The extent of the speed improvement is query dependent.

In order to leverage the power of Impala, we are incrementally migrating our servers to CDH4 however some preliminary testing has already begun.

CONCLUSION

Coupling our more rigid data structures like our newly created search tables and Impala will likely see an even greater decrease in the turn around time for responding to business requests. The positive effect this will have on our department is hard to quantify – especially as the more approachable SQL like syntax and organised data sets will allow us to explore our data more readily.

That is not to say we will entirely rid ourselves of the need to run adhoc Pig jobs to answer particular requests. However if the bulk of the heavy lifting has been done, the occasional MR job will hopefully keep the colourful language to a minimum.

You can find Xavier Clements on Twitter. Apache Hadoop is a trademark of the Apache Software Foundation.

Wajam in 2013: A Year Of Growth, Innovation and Fun

January 2nd, 2014 | by alainwong

posted in Awards and Press Mentions, Company, Culture, Montreal, Press, Startups, Team Activities, Wajam Spartans

Happy New Year!

What a year it has been. So many Canadian startup success stories, including the public launch of our friends PasswordBox, and the rocket growth of Frank & Oak. We’re thankful to be part of such an innovative and supportive community in Montreal, and we wish everyone the best for the upcoming year.

Here are highlights from the past year at Wajam.

GROWING THE WAJAM FAMILY

We grew the team from ten to over fifty in the past year and moved into a beautiful new office decorated with artwork from local graffiti legends Scaner, Axe and Earth Crusher.

New Wajam office in 2013

Graffiti Artwork at Wajam

As a team, we shared many memorable moments, from occasional nerf gun shootouts at the office to outdoor sporting challenges against fellow Montreal startups.

Team outings included curling, bowling, karting, softball and more!

One of the more involved events this year was our participation at this summer’s Spartan Race, which featured training in the park, jogging at sunrise and gym training.

Wajam Gym Training for Spartan Race

Flight training at the gym for Spartan Race

Wajam Spartans at the finish line in 2013

Wajam Spartans celebrate at the finish line

ENGAGING MONTREAL’S TECH COMMUNITY

We participated in community events such as Start-Up Open House Montreal and hosted local meetups for Scala Montreal, Pyladies and more.

We won 2nd place at the International Startup Festival ball hockey tournament against teams from Twitter, Busbud, Real Ventures, iNovia Capital, BDC, Nexalogy, Rho Ventures and more.

Wajam Startup Ball Hockey Tournament

2nd place at the International Startup Festival ball hockey tournament

Wajam soccer in 2013

The Wajam Panda mascot during a soccer match vs. PasswordBox

FOSTERING INNOVATION

We hosted talks with special guests like Boku co-founder Ron Hirson, Frank & Oak founders Hicham Ratnani & Ethan Song, Nicolas Bélanger from W Investments (co-founder of DTI Software the world’s leader of in-flight entertainment technology), Richard Speer from Attraction and more.

Ron Hirson at a Wajam Lunch & Learn talks in 2013

Ron Hirson from DocuSign giving a Lunch & Learn talk at the office

AWARDS AND RECOGNITION

Just like the previous year, we won many awards. Among the highlights, CEO Martin-Luc Archambault won gold for Innovator of the Year at the International Business Awards, and our development team was recognized as the top Technology Department by the Best in Bizz awards. And as a team, we won Canada’s Company of the Year prize at the Digi Awards in Toronto.

Wajam Concours ARISTA award 2013

Wajam CEO Martin-Luc Archambault wins Young Entrepreneur of the Year

THE UPCOMING YEAR

It’s been an incredible year of growth, and we look forward to wowing you with even more social search innovations in the new year.

Wishing you much love, joy and laughter,

The Wajam team

Wajam team holiday photo 2013

Happy Holiday Wishes from Wajam!

December 23rd, 2013 | by alainwong

posted in Company, Culture, Events, Montreal, Startups, Team Activities

What better way to end the year than with a memorable holiday party at Laïka?

We wish you much love, joy and laughter this holiday season, and look forward to more great things together in the new year!