I want to deploy the event receiver created in SharePoint 2010 to the production environment. This is a farm solution, but I have a question regarding the deployment in the production environment. Should event receiver be deployed globally or should they be deployed as web application targeted solution in the production environment?
If you WSP contains only Event Receiver, and no web.config entries (which event receivers do not need), it will always appear as "Globally Deployed" in central administration. Even if you try to target to specific web application, you may get following error:
If it contains other artifacts which requires web.config entries, I suggest you deploy to only those web applications which needs it.
Do you need it available globally? Remember you won't have visual studio on your production farm (or at least you definitely shouldn't), so you can deploy to wherever you specify in PowerShell or via the UI.