<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Techie-Gyan &#187; performance</title>
	<atom:link href="http://www.techiegyan.com/category/performance/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techiegyan.com</link>
	<description></description>
	<lastBuildDate>Fri, 25 Nov 2011 05:37:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Google Starter Guide on SEO (Search Engine Optimization)</title>
		<link>http://www.techiegyan.com/2011/09/12/google-starter-guide-on-seo-search-engine-optimization/</link>
		<comments>http://www.techiegyan.com/2011/09/12/google-starter-guide-on-seo-search-engine-optimization/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 07:49:36 +0000</pubDate>
		<dc:creator>shaguna</dc:creator>
				<category><![CDATA[basics]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.techiegyan.com/?p=1866</guid>
		<description><![CDATA[How does one improve traffic on a website? Well there are various ways e.g. online marketing/advertising, through search engines, social networking etc. The higher the page in search results, the better probability it has of being clicked and hence more visitors would reach the website through a search engine. SEO (Search Engine Optimization) is a [...]]]></description>
			<content:encoded><![CDATA[<p>How does one improve traffic on a website? Well there are various ways e.g. online marketing/advertising, through search engines, social networking etc.<br />
The higher the page in search results, the better probability it has of being clicked and hence more visitors would reach the website through a search engine.<br />
SEO (Search Engine Optimization) is a process of improving the visibility of a website to search engines through natural and organic/unpaid methods. SEO is usually about making small modifications here and there in your website. When viewed individually, these are small changes, but in totality they can have a major impact on the site’s user experience and performance in organic search results.</p>
<p>Here&#8217;s an interesting article to get you started &#8211; <a title="Google's Search Engine Optimization -Starter Guide" href="http://static.googleusercontent.com/external_content/untrusted_dlcp/www.google.com/en//webmasters/docs/search-engine-optimization-starter-guide.pdf" target="_blank">Google’s Search Engine Optimization &#8211; Starter Guide</a>.</p>
<p>Before going ahead, do remember that SEO would help your website gain better positioning in search results, but main focus of a website should be it’s content &amp; users, not just search engines.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techiegyan.com/2011/09/12/google-starter-guide-on-seo-search-engine-optimization/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>10x Performance Improvements &#8211; MySql</title>
		<link>http://www.techiegyan.com/2011/04/10/10x-performance-improvements-mysql/</link>
		<comments>http://www.techiegyan.com/2011/04/10/10x-performance-improvements-mysql/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 06:55:55 +0000</pubDate>
		<dc:creator>Aditya</dc:creator>
				<category><![CDATA[basics]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[interview]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.techiegyan.com/?p=1718</guid>
		<description><![CDATA[10x Performance Improvements View more presentations from Ronald Bradford]]></description>
			<content:encoded><![CDATA[<div style="width:425px" id="__ss_3776503"> <strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/ronaldbradford/10x-performance-improvements" title="10x Performance Improvements">10x Performance Improvements</a></strong> <iframe src="http://www.slideshare.net/slideshow/embed_code/3776503" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
<div style="padding:5px 0 12px"> View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/ronaldbradford">Ronald Bradford</a> </div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.techiegyan.com/2011/04/10/10x-performance-improvements-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Application Events &#8211; Spring framework</title>
		<link>http://www.techiegyan.com/2011/04/08/using-application-events-spring-framework/</link>
		<comments>http://www.techiegyan.com/2011/04/08/using-application-events-spring-framework/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 18:25:31 +0000</pubDate>
		<dc:creator>Aditya</dc:creator>
				<category><![CDATA[basics]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[interview]]></category>
		<category><![CDATA[j2ee]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.techiegyan.com/?p=1700</guid>
		<description><![CDATA[Spring Application contexts support a simple form of event publishing and subscription. This event mechanism can not be compared with other message queues and JMS like systems but can be useful for certain use cases like following: 1. Sending async email: While executing a user registration flow, system may want to send and email and [...]]]></description>
			<content:encoded><![CDATA[<p>Spring Application contexts support a simple form of event publishing and subscription. This event mechanism can not be compared with other message queues and JMS like systems but can be useful for certain use cases like following:</p>
<p>1. Sending async email: While executing a user registration flow, system may want to send and email and sending this email should not stop the registration process to complete so it requires an asynchronous way to do that. Application Event can help in this situation.<br />
2. Auditing application actions: Another use case where you do not want to stop the execution of main thread and want to audit activities in an async way.</p>
<p>I am trying to list classes you will need to use your own Application Events and handle them:</p>
<p><strong>a) Your custom event :</strong> UserEvent, AbstractEvent. AbstractEvent is an abstract class which can be extended based on requirement. As you can see in the code, Event Id is used to call its super class which is ApplicationEvent class of Spring framework. Another variable eventContext is used to carry context parameters to the handler of event(Check different constructors of UserEvent). </p>
<pre class="brush: java; title: ; notranslate">
public class UserEvent extends AbstractEvent {
        public UserEvent(String eventId, Object eventContext) {
		super(eventId, eventContext);
	}
        public UserEvent(String eventId, User user, String tPassword) {
		super(eventId, new HashMap());
		Map&lt;String, Object&gt; params = (Map&lt;String, Object&gt;) this.getEventContext();
		params.put(&quot;user&quot;, user);
		params.put(&quot;tPassword&quot;, tPassword);
	}
}

public abstract class AbstractEvent extends ApplicationEvent {

        protected String eventId;
	protected Object eventContext;

	public AbstractEvent(String eventId, Object eventContext) {
		super(eventId);
		this.eventId = eventId;
		this.eventContext = eventContext;
	}

	public String getEventId() {
		return eventId;
	}

	public Object getEventContext() {
		return eventContext;
	}

	public Object getContextParams(String paramName){
		if(! (eventContext!= null &amp;&amp; eventContext instanceof Map)){
			return null;
		}
		return ((Map)eventContext).get(paramName);
	}
}
</pre>
<p><strong>b) Publish your custom event :</strong> You will like to publish your custom event generally from the flow of execution e.g. in this case UserService or RegistrationService. Spring gives a facility to make your class able to publish Application events by implementing ApplicationEventPublisherAware interface. </p>
<p>By implementing ApplicationEventPublisherAware, you need to implement setApplicationEventPublisher function and Spring will automatically call set function to inject ApplicationEventPublisher instance. This instance can be used for publishing the event.</p>
<p>This basically invokes all listeners waiting for this kind of Event in a separate thread to make it async.</p>
<pre class="brush: java; title: ; notranslate">
public class RegistrationService implements ApplicationEventPublisherAware{
        protected ApplicationEventPublisher applicationEventPublisher;
        public static final String Event_RegisterUser = &quot;registerUser&quot;;

        public void registerUser(User u) {
                .......
                .......
                try {
				applicationEventPublisher.publishEvent(new UserEvent(Event_RegisterUser, u));
			}
			catch(Exception e) {
				logger.error(e.getMessage(), e);
			}
                ..........
                ..........
        }
        public void setApplicationEventPublisher(
			ApplicationEventPublisher applicationEventPublisher) {
		this.applicationEventPublisher = applicationEventPublisher;
	}
}
</pre>
<p><strong>c) Handle your custom event :</strong> An event listener would be required to handle the event published by the service and handle it. By implementing ApplicationListener, class has to implement onApplicationEvent function where it gets the Event object with eventId and eventContext.</p>
<pre class="brush: java; title: ; notranslate">
public class UserEventListener implements ApplicationListener&lt;UserEvent&gt; {
        public void onApplicationEvent(UserEvent event) {
                String eventId = event.getEventId();
                User user = (User) event.getContextParams(&quot;user&quot;);
                String tempPassword = (String) event.getContextParams(&quot;tPassword&quot;);
                //Do your handling like send an email to newly added User
        }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.techiegyan.com/2011/04/08/using-application-events-spring-framework/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Microsoft Cloud Computing &#8211; Windows Azure Platform</title>
		<link>http://www.techiegyan.com/2011/04/05/microsoft-cloud-computing-windows-azure-platform/</link>
		<comments>http://www.techiegyan.com/2011/04/05/microsoft-cloud-computing-windows-azure-platform/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 09:33:45 +0000</pubDate>
		<dc:creator>Aditya</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.techiegyan.com/?p=1705</guid>
		<description><![CDATA[Microsoft Cloud Computing &#8211; Windows Azure Platform View more presentations from David Chou]]></description>
			<content:encoded><![CDATA[<div style="width:425px" id="__ss_2647184"> <strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/davidcchou/windows-azure-platform-2647184" title="Microsoft Cloud Computing - Windows Azure Platform">Microsoft Cloud Computing &#8211; Windows Azure Platform</a></strong> <iframe src="http://www.slideshare.net/slideshow/embed_code/2647184" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
<div style="padding:5px 0 12px"> View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/davidcchou">David Chou</a> </div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.techiegyan.com/2011/04/05/microsoft-cloud-computing-windows-azure-platform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon Web services &#8211; Web applications in the AWS Cloud</title>
		<link>http://www.techiegyan.com/2011/03/14/amazon-web-services-web-applications-in-the-aws-cloud/</link>
		<comments>http://www.techiegyan.com/2011/03/14/amazon-web-services-web-applications-in-the-aws-cloud/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 23:21:10 +0000</pubDate>
		<dc:creator>Aditya</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.techiegyan.com/?p=1639</guid>
		<description><![CDATA[Building powerful web applications in the AWS Cloud : A Love Story &#8211; Jinesh Varia View more presentations from Amazon Web Services]]></description>
			<content:encoded><![CDATA[<div style="width:425px" id="__ss_7209675"> <strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/AmazonWebServices/building-powerful-web-applications-in-the-aws-cloud-a-love-story-jinesh-varia" title="Building powerful web applications in the AWS Cloud : A Love Story - Jinesh Varia">Building powerful web applications in the AWS Cloud : A Love Story &#8211; Jinesh Varia</a></strong> <object id="__sse7209675" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=cloudconnect-patterns-v2-110309162136-phpapp02&#038;stripped_title=building-powerful-web-applications-in-the-aws-cloud-a-love-story-jinesh-varia&#038;userName=AmazonWebServices" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse7209675" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=cloudconnect-patterns-v2-110309162136-phpapp02&#038;stripped_title=building-powerful-web-applications-in-the-aws-cloud-a-love-story-jinesh-varia&#038;userName=AmazonWebServices" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="padding:5px 0 12px"> View more presentations from <a href="http://www.slideshare.net/AmazonWebServices">Amazon Web Services</a> </div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.techiegyan.com/2011/03/14/amazon-web-services-web-applications-in-the-aws-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

