[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: HRwoClTboAAzQHS.jpg (84 KB, 891x906)
84 KB JPG
Is it okay if I just use SQLite for the database? I can't imagine that many people using the site so it should be fine right?
>>
>>109777644
AFAIK SQLite does not have any concurrency support at all. Use MySQL.
>>
>>109777670
Not OP but it can handle like 5k writes per second. That's good enough for a small forum.
>>
>>109777644
Nobody is gonna visit your textboard site lil bro
This is not 2007
>>
>>109777670
Part of the reason why I was wanting to use SQLite is because I'm too stupid to setup my computer to run postgres locally. I hope MySQL actually works for me out of the box.
>>109778188
That is what I was thinking. I'm not expecting much traffic so I'm wondering if having a server based database is overkill.
>>109778198
I bet I can get at least 100 peak concurrent posters daily.

\m/
>>
File: tools.jpg (284 KB, 2048x2048)
284 KB JPG
>>109777670
It lacks write concurrency, not read concurrency.

But if it's a low traffic backend like what OP anticipates, it really wouldn't be an issue.

Worst case scenario if load and traffic got real heavy, you could just add a backend process that runs an inbound queue and merges multiple write operations into write batches. You could do this with some basic ass string interpolation honestly.
>>
>>109778272
>I bet I can get at least 100 peak concurrent posters daily.
doubt
>>
>>109778272
100 peak posts probably
yeah sqlite is more than enough for this. when you need more just build a tool to query everything and put it into another database. mysql is a piece of shit and mariadb isn't much better. postgresql is the shit. no cap I prefer MSSQL just fine except postgresql seems to have a lot more support on this side of the fence.
>>
>>109778376
>>109778382
Don't underestimate me damnit!
>>
>>109779044
you sound kinda trans sorry I can’t believe you
>>
>>109779045
Trust me, I know what I need to do to at least get 100 people posting on my site at a time. I just have to make my textboard unique and make posting fun.
>>
>>109779083
Then vibecode it
>>
>>109777644

No dude bro man im indian hindu im tech whiz my cousin work for Amazon. Listen to me, you need active-active failover and leader election features. Make new posts go into kafka instance. Then aws lambda take from kafka and write to dynamo db. You have infinite scale because amazon engineers are very talented. Triust me ignore other retards giving bad advice I can charge clients $300 consulting fee for the free advice I give to you.
>>
>>109779091
Vibecoding is for when you just want the end result. I want to become a better programmer and to be familiar with my codebase, so I'll wait 2 weeks to a month to put this together. It'll feel good knowing I completed a project for once.
>>
>>109779126
You aren't cool for making fun of Indians.
>>
>>109779044
Good luck to you bro, I think you can do it
>>
>>109777644
Yeah it's fine. It simplifies things a lot. Don't worry about scaling and performance benchmarks and shit for now.
I would not use SQLite in prod where I actually need concurrency and the data is critical. For everything else, it's great.
>>109778272
MySQL is very easy to install and set up on Windows too. Sticking with SQLite for the app for now is good, I just recommend learning MySQL or Postgres at once point down the line because it's useful to know.
>>109779159
Based, go for it
>>
>>109777644
Just start with sqlite and keep changebility high. Put it behind an interface, so the rest of the app does not know or care which db is used. If u see performance issues from db i/o change it later when u actually need lt.
>>
>>109777644
I can be your local schizophrenic if you tell me what the site is
>>
>>109781398
>>109781421
Okay I'll stick with SQLite to start off with
>>109781494
I'm already the local diagnosed schizophrenic.
>>
>>109777644
sqlite is good, i use xampp with sqlite for my local server, it just werks
>>
>>109782907
>it just werks
There's literally no release of it with the latest LTS PHP version that has been out for like a year
>>
>>109777644
>>109778272
>I bet I can get at least 100 peak concurrent posters daily.
to oversimplify: it doesn't matter until it does.
how much forward looking (or forward compatible) you want to be is up to you - your time/money your choice.
>>
>>109777644
try FuzeDBI, it lets you compile with SQlite or Postgres support
https://github.com/Liteb0t/FuzeHttp <--- in ./source
it limits you to using a subset of SQL, but that's all you need.
>>
>>109780944
Watch out everyone, we have a virtuous sir over here!
>>
>>109784279
counterpoint: nomads.com
runs on sqlite
>>
>>109777644
what language are you making this with?
Anyway, a textboard is like a weekend project, at maximum
>>
>>109777644
just store txt files named after the post number in one directory per board
>>
>>109777644
She looks deceased and rotting.
>>
>>109785054
Javascript using Node.js + Express.js
This is probably going to take me 2 weeks because I'm not a good programmer.
>>
>>109785200
my condolences
>>
>>109785220
I was going to use Go but I really dislike its syntax and the fact that it is a static language. I went with JS because it probably has the most resources for beginners out there.
>>
>>109785256
Go is piss easy though, even if I do hate the syntax (the python parts). I'm a cpilled boomer though, so I don't get why anybody would not want static typing.
Are you really a beginner if you know specific JS slop frameworks? or did you just ask chatgpt
>>
Anyone have any board suggestions? I'm planning on having a technology board, a random board, and a meta board to start off with.

>>109785277
I finished the first part of The Odin Project, have probably followed 100s of tutorials over the past decade, and played around with Rails and PHP. I consider myself a beginner because I haven't built anything significant. If you want to know why I "know" these frameworks it is because I'm just watching tutorials on the stuff I want to learn. All I have had ChatGPT do so far is write SQL for me.
>>
>>109785342
Fair, but I think'd you'd have the most benefit from learning SQL out of those
>>
>>109785380
I just had it flesh out my schema. I am still going to write the queries by hand.
>>
>>109781494
The domain is moshr.net
>>
>>109785342
The standards are anime/music/whatever
>>
>>109777644
sqlite is fine when i was in uni i made an image board and posted the link here didnt have any issues while anons used it for a day or so
>>
>>109788802
I think I'm just going to let people make boards.
>>109789334
Good to hear.
>>
>>109777644
Sure it works, nanochan / picochan used it, if you'll have problems it will be your software or your schema, not SQLite.
Check online for their code.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.