Skip navigation.

My Opera News

Behind the scenes at My Opera

Status of sidebar, friends and other stuff...

, , ,

The Apricot release is now stabilized, after a few days of problems here and there.

The good thing is that we learned something more. The bad thing is that it took us a couple of days to realize what the real problem was.

I always like to say that My Opera becomes stronger and faster only after some "crisis" moments. It's those performance/stability/whatever problems that demand highest attention and you have to do something to fix them, no matter what. So, whatever doesn't kill you, it makes you stronger. :-)

Initially, we thought the problems were in the new friends system code. After careful inspection and partial rewrite of both Sidebar and Friends components, it became evident that the problem had another cause. As many other sites, we use memcached on several machines. It acts as a distributed cache store that makes the site faster and able to serve more requests with the same hardware resources.

Before we started the emergency rewrite of the Sidebar module, we decided to take a closer look at the class that was handling the memcached connections and queries. What we found out (part of what My Opera is today is still legacy stuff for us...) is that this class was issuing a new connection to our memcached server each and every time we queried some data. This is obviously not optimal, so we decided to keep persistent connections to the servers.

As of now, we restored all the functionality in Sidebar and Friends. Sidebar and Friends data is now present on much more pages than before, and that means more backend power needed to serve the same pageviews. We also have a lot more features and queries to the database, but still we're able to cope with the traffic, which is btw quickly increasing.

The Sidebar in particular was broken because when we introduced caching for it, it happened that the same (cached) version of the Sidebar content was used for the /albums/ and for the /blog/ page, which is completely wrong. Now we keep two separate copies because they can, and will, be different. The Sidebar content is also kept in the cache for 30 minutes at most, unless you change your sidebar settings. The recent visitors list didn't update because of this caching. Now everything should be back to normal.
We will probably make sure that your sidebar is updated when you write a new blog post or when there's a new comment, etc... For now this is just planned...

In the meanwhile, our monitoring team (LOL) noticed that at peak time and at some random moments in the day, the site slows down for a couple of minutes, and then everything is back to normal. We're working to solve this by optimizing the code even more. Without breaking anything, if possible... :-)

Big surprises ahead... And you don't know the super-secret feature yet... :-)

Sidebar and friendsHappy birthdays!

Comments

Fredrik Andersson 12. March 2009, 17:49

The super secret feature is actually quite cool. :D

Cσησя Mμяρнỵ 12. March 2009, 17:50

:lol: I'd like to ask.... whats the point of a super secret feature? If its super secret, nobody has figured it out yet. And if nobody has figured it out, it can't be pratical...

Tamil 12. March 2009, 17:50

Originally posted by cstrep:

Big surprises ahead...

Cosimo Streppone 12. March 2009, 17:54

I just wrote some additional considerations on the sidebar stuff.

Conor M: now it's still super-secret, but wait just a bit, and it will be announced, probably here on the devblog...

Santa Furie 12. March 2009, 19:18

It sounds like the sidebar caching is an international conspiracy to force us to update our pages more often. :devil:.

Would this super-secret feature be something to do with social networking and other sites by any chance? :sherlock: Also, is it active but hasn't been announced or are you guys still waiting to make it go live?

Cσησя Mμяρнỵ 12. March 2009, 19:21

Hopefully it will be new smileys :yes: That would be cool

Santa Furie 12. March 2009, 19:22

There was a competition a couple of years back to design new smileys. I won part of it, but none were ever created. awww I can't see something being this hyped and turning out to just be smileys though.

Cσησя Mμяρнỵ 12. March 2009, 19:30

Wow, that was scabby...

Henry 12. March 2009, 20:30

The super secret feature is actually quite cool.


:whistle:

Cosimo Streppone 12. March 2009, 20:44

No, it's not smilies, but that would be cool. I hereby admit I don't like our own smilies. If it was for me, I'd ban use of smilies in our galaxy, but I also use ratpoison, so I guess I'm not really reliable...

Anyway, it's already live and working!

But if you don't know it, it would be impossible to figure out.

;-)

Cσησя Mμяρнỵ 12. March 2009, 20:54

Just tell me :irked:

Santa Furie 12. March 2009, 21:19

Interesting. :sherlock: Shame I'm leaving for a while. I'd have liked the challenge.

Tamil 12. March 2009, 21:34

Originally posted by Furie:

There was a competition a couple of years back to design new smileys. I won part of it, but none were ever created. awww

I asked about that in forums but didn't get any official reply.

Santa Furie 13. March 2009, 01:03

I say we kidnap Fred and torture him for an answer. :up: I've already got Mannes in my basement for details on the next Opera Mini. :whistle:

Tamil 13. March 2009, 01:08

Charles Schloss 13. March 2009, 03:26

The super secret feature is actually quite cool.



Cσησя Mμяρнỵ 13. March 2009, 15:54

Good plan Furie, but I'm a bit sort of time. I only have an hour, so are we going brass bull, or kicking it up a notch? :devil:

theoddbod 13. March 2009, 22:11

:wait:

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.