Skip to content

please add more doc, please #10

Description

@daydaygo

advise to add your blog link

i came this project from your blog, advise to add the blog url to readme file

some question

atom_explain($id) return timestamp / datacenter / worker, but i use the code below to test, datacenter and worker are the same, do you make change to the snowflake algorithm ?

for ($i=0; $i < 20; $i++) {
    $id = atom_next_id(); // is different
    $info = atom_explain($id);
    echo $id . "\t" . date('YmdHis', $info['timestamp']) . "\t" . $info['datacenter'] . "\t" . $info['worker'] . "\n"; // $info are the same
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions