Firebase hosting configuration - firebase

It might be a stupid question but curious to know. I have deployed an Angular app in Firebase hosting which loads the application faster. But whereas the same application deployed in the Windows server takes too long to load.
I would like to know what would be the configuration used in Firebase hosting**(RAM, Memory)**.
From the Firebase docs, I could able to see that it uses SSD-Backed hosting but where could i find the other details like how much RAM is used and does it uses any CDN.

There doesn't seem to be any configuration for the backend or if the resources are dedicated for a website listed in the documentation. Although it's not just about the server configuration especially since your app is a SPA and is just serving some HTML, JS files, so CDN seems to be making the difference here.
Firebase Hosting does cache your website on a global CDN and hence loading quickly everywhere. I'm not sure if you are using a CDN with your Windows server but if not then the difference sounds obvious (especially if your server is located far away from you). Firebase hosting also serves the files compressed using GZIP or Brotli compression.

Related

Azure web app serving old files

I have a CI pipeline using VSTS to deploy an asp .net core application to a web app hosted on Azure
Every time I successfully deploy to the web app it seems that Azure isn't serving the latest changes to the sites homepage. I have verified using the Kudu advanced tools that the files are in fact the latest but it seems that Azure isn't serving them and is somehow serving older files.
This seems to only affect any pages from the home controller as all other routes and static files seem to update fine.
Does anyone know why Azure may be showing older or cached version of certain pages?
If your web app uses local cache, you need to restart your site to get the latest changes. Check if you have set the value of WEBSITE_LOCAL_CACHE_OPTION to ‘Always’ in your Application settings.
Also, set WEBSITE_DYNAMIC_CACHE value to zero and check.
You have mentioned that files are updated in Kudu console. As others suggested, if you haven’t done this already, try clearing browser cookies, history and cache. Also, test this on another browser or private mode and see if that helps.

Moving from shared windows hosting to Firebase hosting

I am currently using Windows hosting for my Android app, from a local Domain provider.
I have developed and published my app on the Firebase platform. I want to know if moving (the hosting) from current Windows hosting to Firebase will make the app respond faster?
firebase surely will respond faster as it use ssds as and seperated server cdn to reach user in global but it's just the server that cached and optimezed for faster respond it's depend to your code for threading the process for more tricky performance :)

Nginx and Dart Server

I learned Dart as my first web development language and produced my first web server, learned some Docker for deployment, but I keep seeing terms like apache, nginx, load balancing, etc.
Nginx big plus is that asynchronous but Dart is all ready asynchronous, I already serve static files with shelf, so what would be good reasons to learn and use nginx?
I don't know nginx myself but such servers are usually optimized for serving static resources like images or CSS or any other files with good caching. I t might be a good idea to not expose your application directly to the web for security reasons and shield it by a well tested server. Such servers also might provide some features like, caching, load balancing or virtual domains, and probably many more.

Symfony 2 on shared hosting?

I'm developing my app in Symfony 2, and one of the things that i have kept in mind is that symfony 2 have a lot of requirements. I know that in my pc works. But i've never tryed to deploy my app in a shared hosting. Is not that i want all the functionalities of the framework, i only need that the app works, and also the caching works.
Do i need a special shared hosting or it can run in any hosting that have (of course) PHP and the Database Engine that i'm using?
If i do, which shared hosting may I use?
If i don't, do i need a special configuration?
Thanks in advanced.
These are the requirements for running symfony2
http://symfony.com/doc/2.0/reference/requirements.html
Have a look at it and compare with your hosting provider and see if they matches.
Most of them should match othwise give the support team a call and they will look at it.
usually most of the Hosting companies have symfony2 available as addon so i think they might have all requirements but ask you can confirm with them. like Godaddy
You also want to be cautious for shared hosting servers that use separate php versions for CLI vs Apache. If this is the case, even though you can run parts of your application via ssh, you may not be able to run most of your Symfony2 application via http.
I think you may be better off investing in a cheap VPS for Symfony2 development as it allows more flexibility and will ultimately save you more time. A lot of vps these days are almost as cheap as shared hosting anyway.
Well No doubt Symfony requires lot of pre requsites. specially when it comes to shared hosting. I practice my self managed cloud hosing services of Cloudways. This is so because they provide popular php framework as one click app installation, Moreover, i found installation process of symfony on cloud server over there blog. Just followed the simple steps and symfony 3 was installed on my server.

Running asp.net app on localhost

This might be a 'duh' question after all.
Are there any caveats running an asp.net (3.5) application on a local host? Assuming I have all the required services installed, I am looking for pitfalls/ troubles in terms of
database access
reporting/ charting and other such features
performance
The main reason for this is that the app I am developing will be eventually hosted on a proper web server but till then I want to be able to use my app from a browser (for test, demos...).
[Note: till the time the app is hosted on a web server, only I will be using the app]
As long as you install all the same components (and the same versions of them to be 100% sure) on your computer as you have available on the server, there shouldn't be any difference at all in functionality. One thing to watch out for is that the app will certainly be less responsive when someone accesses it over the internet, compared to the client and server being the same machine.
You won't have any problems at all, this is how many people indeed test. When you are ready to move it online, just make sure the host supports everything you need.

Resources