Sharepointfx revival

Posted: May 22, 2011 in Sharepoint

The SharepointFx CodePlex site is now undergoing its due revival.Although we planned to publish these components a year back,due to the busy schedule we didn’t able to publish the components but its never late and the response looks good. Here is  the Link to the site

http://Sharepointfx.codeplex.com .Also see few of the screenshot of the components we uploaded recently:-

Facebook Like Discussion Using SharePoint Discussion List

Quick StockTicker

Calendar View

Although HTML5 is not completed yet , there are lot of buzz around the spec and features it provides .Many thought that it may be the death nail for Flash and Silverlight  and there were lot of initiatives on HTML 5 already started.Although industry is still in its starting state , its worth looking at the media,mobile,Canvas,Offline Storage,Geolocation,Sockets and notification etc. are worth taking a look.

The Spec http://dev.w3.org/html5/spec/Overview.html

Difference with HTML 4.1 http://www.w3.org/TR/html5-diff/

Good Online book to deep dive into HTML5 http://diveintohtml5.org/table-of-contents.html

Also see the HTML5 Contest http://www.html5contest.com/?page_id=6 and win prizes.

Template or take Decision for Velocity:-

  • Cache Servers: – How Many Cache Servers needed.See Capacity Plan Section in MSDN.
  • Security:-Check Security Permission, Firewall rules and Domain setting.For details see the Security section on MSDN.
  • What we are moving to Distributed Cache: – Plan what you are moving to Cache Static Data, Catalog data .Consider moving less frequently changes data.
  • CacheConfig and Provider: – Consider SqlServer for Cache Cluster Configuration store.
  • Cache Client: – .NET 3.5 SP1 or .NET 4.0
  • Cache Pre-Loading:- Do we need Preloading the cache 
  • Cache loading: – Can it be Parallel?
  • Local Cache Mode and Notification: – Considered Local Cache and Notification.
  • Named Cache:-
  • Region and Tag :- If needed in same physical location.Can be managed as a single operation and tag can be used to query specific tag items.
  • Bulk Operation: – None
  • Versioning and Concurrency: – What type of versioning and Concurrency needed?
  • ChannelOpenTimeOut :- ?
  • RequestTimeOut :-?
  • MaxConnectiontoServer :-?
  • BufferSize:- ?

 

The communication between the cache servers and cache clients uses the WCF channel model and net.Tcp binding. Cache Servers use the 22233 (default) TCP port for communicating with the cache client

  • Tracing: – default (I think its not enabled by default)
  • Protection Level:-Check Access and Permission
  • Running Account: – Network Service or Service Account?
  • Test for a preload
  • Analyze and Decide Future Steps.

 

 

————End——–

 

 

Best Practice Recommendation

  • Even though having just 1 cache server in the client config would suffice, it is recommended to maintain as many cache server hostnames in the config file. *When a cache client connects to one of the cache servers, it gets the routing table which has the partitioning logic to access other cache servers. Including more cache servers helps with more resiliency for the initial connection. If the logic is implemented in code, building a host lookup service will work better.
  • Instantiating a DataCacheFactory object creates several internal data structures (DRM, ThickClient), minimizing the number of DataCacheFactories and creating them in advance (on a separate thread) is recommended. A singleton pattern should work for most scenarios; do not create one DataCacheFactory object per cache operation. When you need to have different policy settings, for example, if local cache is required only for a set of named caches, then having different DataCacheFactory objects will be appropriate.
  • Default setting for ChannelOpenTimeout is 15 seconds, you can set it to much lower values if you want the application to fail fast while opening the channel.
  • Default setting for RequestTimeout is 10 seconds, do not set it to 0. If you do, your application will see a timeout on every cache call. Changes to the default value need to take into account the workload and physical resources (client machine configuration, cache server configuration, network bandwidth, object size, ratio of GETs Vs PUTs, number of concurrent operations, usage of Regions, etc).
  • Setting maxConnectionsToServer=1 (default) will work in most situations. In scenarios, when there is a single shared DataCacheFactory and a lot of threads are posting on that connection, there may be a need to increase it. So if you are looking at a high throughput scenario, then increasing this value beyond 1 is recommended. Also, be aware that if you had 5 cache servers in the cluster, if the application uses 3 DataCacheFactories and if maxConnectionsToServer=3, from each client machine there would be 9 outbound TCP connections to each cacheserver, 45 in total across all cache servers.
  • Local Cache :- For best performance, only enable local cache for objects that change infrequently. Using local cache for frequently changing data may increase the chance that the client will be working with stale objects. Although you could lower the ttlValue and make a process refresh the local cache more frequently, the increased load on the cluster may outweigh the benefits of having the local cache. In such cases of frequently changing data, it is best to disable local cache and pull data directly from the cluster

· Expiration time on Velocity should not be set to very small values, which lead to increasing memory consumption, not decreasing. This occurs because of delays of garbage collection calls―old data expires, but remains in memory, and a new copy of data is added to memory.

· Velocity may scale better than linearly when scaling up from a small number of memory-poor nodes to store most-used data. Increasing the number of Velocity nodes increases the amount of memory available for most-used data and eliminates the database bottleneck.

For CacheClient :- Preparing the Cache Client Development Environment

High-Availability Resources

The cluster configuration storage location can be a single point of failure for your distributed cache system. For this reason, we recommend that you use Windows Server 2008 Failover Clustering (http://go.microsoft.com/fwlink/?LinkId=130692) when you can, to optimize the availability of your cluster’s configuration data. Consider which “clustered” resources are available to your application (in your environment) and balance that with the degree of availability required for your distributed cache system to decide which storage option is best for you.

For example, your infrastructure may already have a “clustered” SQL Server database available to store your configuration settings. Alternatively, there may be a “clustered” folder available for you to deploy a shared folder-based cluster configuration.

· Employ a large number of cache hosts.

· Deploy your distributed cache system within the perimeter of a firewall, with all servers members of the same domain, including the cache clients, cache hosts, primary data source server, and the server hosting the cluster configuration storage location.

· Use SQL Server or a custom provider to store the cache cluster configuration settings.

· Use SQL Server or a custom provider to perform the cluster management role. For more information, see Lead Hosts and Cluster Management (Windows Server AppFabric Caching).

· When possible, use Microsoft Windows Server 2008 Failover Clustering (http://go.microsoft.com/fwlink/?LinkId=130692) to host a “clustered” database resource for the cache cluster configuration storage location.

· Minimize costly configuration changes that require stopping the cluster. When possible, re-create named caches instead of stopping the entire cache cluster to make cache configuration changes in the cluster configuration settings.

· Always use the Stop-CacheHost command to stop the cache service before rebooting a server. When lead hosts perform the cluster management role, the Stop-CacheHost cmdlet will not succeed if the act of stopping the cache service causes the entire cache cluster to shut itself down (because of no majority of running lead hosts).

REF:-

http://msdn.microsoft.com/en-us/library/ee790934.aspx

Cache Preload :-

MustRead http://msdn.microsoft.com/en-us/magazine/ff714581.aspx

Preloading,ParallelLoading etc;

 

Cluster settings :- http://msdn.microsoft.com/en-us/library/ee790895.aspx

Velocity benchmarking https://files.griddynamics.net/VelocityBenchmarkWhitePaper20090901.pdf and

http://toddrobinson.com/appfabric/appfabric-cache-feature-comparisons/

With MVC http://cgeers.wordpress.com/2010/07/04/windows-server-appfabric-caching/

AppFabric Cahing vs IBM Exterme Scale http://channel9.msdn.com/Shows/Endpoint/endpointtv-AppFabric-Caching-vs-IBM-eXtreme-Scale-benchmark and Here is the benchmark With Code http://msdn.microsoft.com/en-us/netframework/ff923354.aspx 

Dynamic Router with AppFabCaching http://tinyurl.com/37jcctv

Vittrio has posted a Nice Blog Entry on how to test the Claims and Federation using test Token generated using SelfStS.In Short SelfSTS is a nice little tool which will helps you to test your Identity app without ADFS 2.0 or AD available,Since it ll issue a token via Ws-RED,an endpoint and metadata .You can also create temp Certificate etc. more details on Vittorio’s blog .

Was going thru LightSwitch and although MS claims its to be different than MS Access(Access is for business users and Light Switch for developer)  ,I don’t see it much difference than Access from functionality and usability stand point.What application you used to build with Access(anyone now still build reports with access?) ,you can give LightSwitch a try.I don’t find it for any other use at this point. The beta1 is available now ..see more detail  below http://blogs.msdn.com/b/jasonz/archive/2010/08/23/lightswitch-beta1-now-available-building-your-first-app.aspx

Here is the List of 15 free Enterprise Collaboration tools.Worth Checking Out .Here is the Link

Useful Links

Posted: June 18, 2010 in Uncategorized
 
 
Scaling Down Azure Role ScreenCast http://msdn.microsoft.com/en-us/azure/ff700243.aspx
TechEd North America Videos:-http://www.msteched.com/2010/NorthAmerica/
 
 

NO SQL

Posted: May 17, 2010 in Architecture Series

Of late the NO-SQL movement is gaining popularity and lot of people have started blogging about NO-SQL.Now the question is how much do you think it ll take time to see real-world NO-SQL applications in top level Enterprises.Ted Neward has written a Very Cool Article on NO-SQL on MSDNMAG May Edition. MongoDB,CoucheDB are already quite Popular now and of late getting lot of traction.If you wants to learn more See the Following posts and Links

http://nosql-database.org/

http://www.redmonk.com/jgovernor/2010/04/14/dont-believe-the-hype-come-to-nosql-eu-april-20-22/

http://www.dnrtv.com/default.aspx?showNum=163

http://www.10gen.com/

 

Here is the Video for Configuring TFS with SP2010 from the SharePoint DevWiki Site.Link http://www.screencast.com/users/jthake/folders/SharePointDevWiki.com%20Screencast/media/2659fc52-2749-4bf4-872e-1ddd60471334 .

In the same site you ll find bunch of other Screen Cast on SharePoint  .Here is one I found cool using SpDisposeCheck with VS http://www.screencast.com/users/jthake/folders/SharePointDevWiki.com%20Screencast/media/73537e49-4aff-46b8-bf59-d7693c7c9ea2 .

StyleCop version 4.4 Beta released with fully support all C# 4.0 syntax, will integrate into VS2010, and will provide a number of improvements over version 4.3. This project is currently in beta.Get the Downloads and  Details from Codeplex here http://stylecop.codeplex.com/.

You can get the Code Rush from here http://www.devexpress.com/go/CodeRushX.aspx and the Demo Video here http://tv.devexpress.com/#CRX91FeaturesCS.movie

This is a quick tip which I found useful to get your development fabric running on SqlServer and not SqlExpress.By default Azure takes the Express Edition and if you want your sqlserver to be non-express you need to provide a “.” and not the SqlServer Instance name and the username should be domain/username and pass it to DsInit.exe .

Not sure [have not digged into] from which config does the Azure tools pickup these values but this can save your significant time ,if you have not seen this before.

OReDev Videos

Posted: May 10, 2010 in Uncategorized

The OreDev Site has quite  a few free downloadable videos on Architecture,Agile,Test,PM,Mobile to name a few .I found that there are lots of cool and useful sessions available from industry experts on variety of areas .

Here is the Link