Hey guyz, I have a silly question, if the kobweb w...
# kobweb
a
Hey guyz, I have a silly question, if the kobweb website is ready to deploy as production mode in an azure virtual machine, how should i know what hardware configuration should i keep for the VM also how to calculate how much load my server can take.
c
What's the minimum you can have?
d
I haven't gone in and profiled the Kobweb server, but it's a fairly straightforward ktor setup.
I would start with a relatively cheap configuration and then review any resource dashboards they provide.
p
Hi @Anant Kumar Gupta I recently deployed my landing page on Render. It’s just a simple site with a few pages. I’m using Starter plan (512MB RAM, 0.5 CPU), it works well
Here is the Metrics
~240-250MB
CPU
Hope that helps
d
Thank you @Phuc!
I assume the memory is default amounts allocated by the JVM? In other words, it's probably not that ktor is actively using that much RAM.
(Unless you see it spike when users actually visit the site)
p
Welcome @David Herman I must say thank you to you for creating a great framework. I’ve never thought someday I could build a web easily like this 🙂 (I want to add many more features to my web app though)
❤️ 2
I don’t think I have many users visited my site
d
You're very welcome!
p
I hope I can contribute to the framework but I’m just not sure how to start 🙂
d
The one thing I really love about the web is it is actually surprisingly easy these days to create a site and have it hosted somewhere. It's very empowering.
p
I will introduce the framework to my network here in Vietnam
d
Honestly, just using the framework to create real sites is extremely helpful.
1
Like, you and I can sit in a corner and make Kobweb the most perfect thing in the world, but until people see actual sites running in production, very few people will consider using it seriously.
At this point, keep using it and keep me in the loop for features that are missing, or busted. If we can't prioritize time for it, that could become something you could consider contributing support for (but it's never necessary!)
❤️ 1
p
Well, I have a question. I often see the word “site” in the docs. People often compare web site vs. web app. Can you clarify the “site” a little bit?
d
This definition is fuzzy, but I'd say a website feels like something with a bunch of separate pages where the URL is public and has meaning. Like, you can visit any URL you want directly (putting auth issues aside for the moment). An app feels more like an entire, holistic program, to me.
1
I might also say that, to me, I want my site to generally be inspectable. I want it to be driven by the DOM. I want the browser to be its native environment. A web app, in contrast, lives entirely inside an opaque canvas, generally?
Here's a ChatGPT answer, let me paste it and then think about it:
The difference between a website and a web app lies in functionality and interactivity:
Website: Primarily informational. It displays content for users to consume, such as text, images, and videos, with minimal interaction beyond navigation. Think of blogs, news sites, or company pages.
Web App: Primarily interactive. It enables users to perform tasks, manipulate data, or engage with complex features. Web apps often require user input and provide dynamic responses. Examples include Gmail, Google Docs, or online banking platforms.
In short: Websites deliver content; web apps deliver functionality.
I'm almost on board, but gmail feels like a website to me, as do most banking websites.
If you took Adobe Photoshop though and compiled it to run inside your browser, that would be a clear webapp to me.
I'm open for other people to share their thoughts though!
p
ChatGPT explained exactly what I understood
with website, all visitors will see the same contents with web apps, the contents are often different or personalized
But the big question is, can we use kobweb to build web apps?
d
Sure absolutely
👍 1
I mean you can always use Canvas2d, set it to full screen, and render whatever you want into it
p
I think web “app” does not need to be a canvas
d
Sure, but I'm just saying, if you can do that, you can do anything :)
p
awesome!
d
But sure, you can use the web for UI parts and a small canvas for content that needs to be extra interactive, perhaps
👍 1